Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2008 13:14:45 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-stable@freebsd.org
Cc:        lhmwzy@gmail.com, koitsu@freebsd.org, pjd@freebsd.org, Pete French <petefrench@ticketswitch.com>
Subject:   Re: zfs quota question
Message-ID:  <200810071314.45922.max@love2party.net>
In-Reply-To: <E1KnA2b-0007ls-8u@dilbert.ticketswitch.com>
References:  <E1KnA2b-0007ls-8u@dilbert.ticketswitch.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 07 October 2008 12:43:45 Pete French wrote:
> > Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
> > limit physical space with quota or only logical (before compression)?
> > Should we take space consumed by snapshots into account or not? etc.
>
> On a related note, is there any way to make du tell me how big files
> are in actual bytes on a compressed ZFS filesystem, aas opposed to space
> on the disc ? I love ZFS, but I suddenly found out last night that I
> have lost the ability tto do a 'du' on a directory to work out if it will
> fit onto a CD or not :-)

But you can't do that on UFS either: sparse files, hardlinks, ...

The GNU du(1) has a "--apparent-size" switch to get the logical size instead 
of what the tool's name suggests (the disk usage).

-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News



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