Date: Wed, 8 Oct 2014 15:00:54 +0000 From: Brooks Davis <brooks@freebsd.org> To: Borja Marcos <borjam@sarenet.es> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS API Message-ID: <20141008150054.GD25906@spindle.one-eyed-alien.net> In-Reply-To: <7BD1DA91-6667-4183-B4C2-297FA1602703@sarenet.es> References: <1422065A4E115F409E22C1EC9EDAFBA46044E4@sofdc01exc02.postbank.bg> <1422065A4E115F409E22C1EC9EDAFBA4604B35@sofdc01exc02.postbank.bg> <757ED2D6-0585-43C1-B827-FB349045246A@pingpong.net> <1422065A4E115F409E22C1EC9EDAFBA4604B8D@sofdc01exc02.postbank.bg> <5433F7B5.8090604@bytecamp.net> <7BD1DA91-6667-4183-B4C2-297FA1602703@sarenet.es>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQ1UaYACgkQXY6L6fI4GtRRHgCbBeP17L4DSP2GldjmY/jIY4mr 8SMAn1h0WZRjM313zyoR27Zngh4gWBgA =yzQC -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141008150054.GD25906>
