From owner-freebsd-fs@FreeBSD.ORG Tue Aug 20 05:19:01 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 584C7635; Tue, 20 Aug 2013 05:19:01 +0000 (UTC) (envelope-from aurfalien@gmail.com) Received: from mail-oa0-x234.google.com (mail-oa0-x234.google.com [IPv6:2607:f8b0:4003:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1290122F6; Tue, 20 Aug 2013 05:19:01 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id n12so7326553oag.11 for ; Mon, 19 Aug 2013 22:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=zWd7Ja688M6t2DD5q/V+eKUPwuYteirfBCoiUJXAu/8=; b=CHe+WlMP3pqg92RHb/kkKv0P9WyjNoiQvz87jzLczzvkF0hGhunuQHDT4DiU6UXbzZ f2NsaRAdUi1qIc7Z+yohO9P/9rpkQOA2RYCeBQ683eL1aMr/SDOgkxNS/o3updptlu7b 2FH1hRI8Gtpb+wLYyZ/e0gQqItXaGhQAg5jl2Mnd+46z/NUCMG1IBC7H91KCBes4enPZ rNK1TaEyKKX5Hdu2DJ9/+37hB4rjnB11IGIOgJzd7Ma3kaNaGonlE9IczULYWAH0QnxA QfoIgRFixPbpfp/2csTubNcm8Y35RpFWZfEPW2lYRDWU7qryNJGCal6KEP3wRCG/6e3n S4/w== X-Received: by 10.60.44.240 with SMTP id h16mr16615649oem.2.1376975940365; Mon, 19 Aug 2013 22:19:00 -0700 (PDT) Received: from [192.168.1.74] (75-63-29-182.lightspeed.irvnca.sbcglobal.net. [75.63.29.182]) by mx.google.com with ESMTPSA id r4sm21685071oem.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 22:18:59 -0700 (PDT) Subject: Re: du which understands ZFS Mime-Version: 1.0 (Apple Message framework v1085) From: aurfalien In-Reply-To: Date: Mon, 19 Aug 2013 22:18:56 -0700 Message-Id: References: To: Artem Belevich X-Mailer: Apple Mail (2.1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs 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: Tue, 20 Aug 2013 05:19:01 -0000 On Aug 19, 2013, at 9:46 PM, Artem Belevich wrote: >=20 >=20 >=20 > On Mon, Aug 19, 2013 at 8:51 PM, aurfalien = wrote: > Hi, >=20 > Is there a version of du which understands ZFS? >=20 > Currently when running du I get this; >=20 > I guess you meant 'df'. >=20 > Alas, the answer seems to be 'no, there's no ZFS-aware df'. The reason = for that is that df gets its info via statfs(2) call and the only info = it gets back is total number of blocks and available number of blocks. = It's assumed that used space equals total-available. It worked well = enough for other filesystems where it was filesystem that was managing = disk space. >=20 > ZFS obviously violates this assumption as available space is actually = property of the pool, not of the filesystem, so ZFS has to lie about = total size in order to present (arguably more important) amount of used = and available space in a consistent way.=20 >=20 > --Artem Thanks for the reply. There is a ZFS aware df in Illumos. I wonder if it would be possible to = port this to FreeBSD? Unsure how it works, hell I didn't even know how df worked until you = explained, still kinda don't :) At any rate, perhaps I'll bring bring this up in the FreeBSD dev list to = see what traction I get. - aurf >=20 >=20 > Filesystem Size Used Avail Capacity = Mounted on > abyss 51T 50k 51T 0% = /abyss > abyss/PROJECT 72T 20T 51T 29% = /abyss/PROJECTS > abyss/PROJECTX 54T 2.6T 51T 5% = /abyss/PROJECTSX >=20 > The zpool of abyss is 75TB in size. >=20 > - aurf > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >=20