From owner-freebsd-fs@FreeBSD.ORG Thu Oct 3 14:57:32 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4511FC94 for ; Thu, 3 Oct 2013 14:57:32 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1597B29C8 for ; Thu, 3 Oct 2013 14:57:31 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 4369F217C0 for ; Thu, 3 Oct 2013 10:57:21 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Thu, 03 Oct 2013 10:57:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=t8NanBQhXQxNUdc2xjotowofepc=; b=Ywz w5RqWQ9BH0sTqZh5Ku22ixTT7l5W3LO/rl0aljtX50lRy+jNwpVvj7HYmnQkWHal BoHclUZmKQlgiUoZt3NpwBWmZXjbiUd/nNbKYZjcqNLUJTRaQkyXoYgLrt7hxWI2 wSB+moPyXPulNJQ2fiWadyB0fPfApnVOYwTSi0Hw= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id CC08A1086C5; Thu, 3 Oct 2013 10:57:21 -0400 (EDT) Message-Id: <1380812241.31283.29585397.2EC656B0@webmail.messagingengine.com> X-Sasl-Enc: 4iIs7KoKMsygR6kThsehFNMjMrGAt3EkGSxWw+D+w64a 1380812241 From: Mark Felder To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-ce174988 In-Reply-To: References: <52457A32.2090105@fsn.hu> <77F6465C-4E76-4EE9-88B5-238FFB4E0161@sarenet.es> <20130930234401.GA68360@neutralgood.org> <524B1EB6.2020003@delphij.net> <524C5495.3040800@delphij.net> Subject: Re: zfs: the exponential file system from hell Date: Thu, 03 Oct 2013 09:57:21 -0500 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Oct 2013 14:57:32 -0000 I have to do some accounting on our backup servers to know what to bill customers for their space usage. I do this which is reasonably accurate for our needs chomp($kb = `zfs get -o value -Hp used $subdir` - `zfs get -r -o value -Hp usedbysnapshots $subdir | grep -v "-" | paste -sd+ - | bc`);