Date: Mon, 13 Jun 2011 22:26:00 +1000 (EST) From: Bruce Evans <brde@optusnet.com.au> To: =?UTF-8?Q?=C5=A0imun_Mikecin?= <numisemis@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: Impossible compression ratio on ZFS Message-ID: <20110613222215.J1792@besplex.bde.org> In-Reply-To: <BANLkTinGNetJn=W9RuoUp44QGyRqHQ1wvw@mail.gmail.com> References: <F21D6DCDBA494B4A9FDF20A13BC4947A@multiplay.co.uk> <20110613094803.GA10290@icarus.home.lan> <BANLkTikDXHwk_P-6rdoZYRVcqGnOCwXoMg@mail.gmail.com> <3DA28334D5774636A0DDEB48D8A43A91@multiplay.co.uk> <BANLkTinGNetJn=W9RuoUp44QGyRqHQ1wvw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Jun 2011, [UTF-8] Šimun Mikecin wrote: > 2011/6/13 Steven Hartland <killing@multiplay.co.uk> > >> Using 'du' for file sizes (without -A option) is wrong in the first place. >>> Any program or script that is using it in such a way is broken and should >>> be >>> corrected. You mean that any script that uses du with the -A option is broken. -A just shows the file size in bad units. >> That's not true, -A displays the apparent size not the actual disk usage >> which is what we want. > > Disk usage is not equal to file size. 'ls -al' shows file size, 'du' shows > disk usage. > Use the one you need, but don't expect them to be the same thing. Indeed, the file size is only vaguely related to the disk usage. Normal du shows disk usage including increases of it due to metadata and decreases of it due to compression or sparseness (which is a particular type of compression). du -A might be useful if the file is to be copied to another file system with no compression at all. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110613222215.J1792>
