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
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-384147912-1307967960=:1792 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 13 Jun 2011, [UTF-8] =C5=A0imun Mikecin wrote: > 2011/6/13 Steven Hartland <killing@multiplay.co.uk> > >> Using 'du' for file sizes (without -A option) is wrong in the first plac= e. >>> Any program or script that is using it in such a way is broken and shou= ld >>> 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' show= s > 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 --0-384147912-1307967960=:1792--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110613222215.J1792>