ZFS API

Brooks Davis brooks at freebsd.org
Wed Oct 8 15:00:56 UTC 2014


On Wed, Oct 08, 2014 at 10:28:18AM +0200, Borja Marcos wrote:
> 
> On Oct 7, 2014, at 4:24 PM, Robert Schulze wrote:
> 
> > Am 07.10.2014 16:15, schrieb Ivailo A. Tanusheff:
> >> I want to achieve an automated snapshot creation/removal trough C written daemon by myself.
> >> Obvious there is an API, but without proper documentation.
> > 
> > KISS.
> > 
> > This can easily be done with any scripting language/shell, no need to code that in C.
> 
> It depends on your goals. Relying on scripts running commands and parsing their output is not what I would call
> sound software design. So much can go wrong. If you are just putting together some tools do to some light work it's fine, though.

It's worth noting that the ZFS command line tools are explicitly
designed to enable relible scripting if you use arguments like -H (no
headers) and -o (extract specific columns).  I talked about this a bit
at the end of this presentation:

http://2011.eurobsdcon.org/papers/davis/system-mgmt-zfs-notes.pdf

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20141008/69b23720/attachment.sig>


More information about the freebsd-fs mailing list