From owner-freebsd-fs@FreeBSD.ORG Wed Oct 8 15:14:31 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D21CF3C2; Wed, 8 Oct 2014 15:14:31 +0000 (UTC) Received: from cu01176b.smtpx.saremail.com (cu01176b.smtpx.saremail.com [195.16.151.151]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 889F1D40; Wed, 8 Oct 2014 15:14:31 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop04.sare.net (Postfix) with ESMTPSA id 20E849DCE9A; Wed, 8 Oct 2014 17:04:38 +0200 (CEST) Subject: Re: ZFS API Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="utf8"; X-Pgp-Agent: GPGMail (null) From: Borja Marcos In-Reply-To: <20141008150054.GD25906@spindle.one-eyed-alien.net> Date: Wed, 8 Oct 2014 17:04:31 +0200 Content-Transfer-Encoding: 8bit Message-Id: <3A396786-4010-4934-AA12-9DBC87392D99@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> <20141008150054.GD25906@spindle.one-eyed-alien.net> To: Brooks Davis X-Mailer: Apple Mail (2.1283) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 15:14:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 8, 2014, at 5:00 PM, Brooks Davis wrote: 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 I know, again it's not exactly the optimal way to do it. Call me old-fashioned :) Borja. -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlQ1UoQACgkQULpVo4XWgJ8tggCeN9nKboZm3jTkxIDXaQscY7EO mgoAn1OIxQVK5LrzZL7kj7hTvuBwitkA =30bv -----END PGP SIGNATURE-----