Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--hwvH6HDNit2nSK4j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 08, 2014 at 10:28:18AM +0200, Borja Marcos wrote:
>=20
> On Oct 7, 2014, at 4:24 PM, Robert Schulze wrote:
>=20
> > Am 07.10.2014 16:15, schrieb Ivailo A. Tanusheff:
> >> I want to achieve an automated snapshot creation/removal trough C writ=
ten daemon by myself.
> >> Obvious there is an API, but without proper documentation.
> >=20
> > KISS.
> >=20
> > This can easily be done with any scripting language/shell, no need to c=
ode that in C.
>=20
> 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 toge=
ther 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

--hwvH6HDNit2nSK4j
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQ1UaYACgkQXY6L6fI4GtRRHgCbBeP17L4DSP2GldjmY/jIY4mr
8SMAn1h0WZRjM313zyoR27Zngh4gWBgA
=yzQC
-----END PGP SIGNATURE-----

--hwvH6HDNit2nSK4j--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141008150054.GD25906>