-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Miguel Barão on 10/19/2006 9:47 AM:
> This not a bug but rather an inconsistent output between these two du 
> options, 
> which is not documented in the manpages.

Read the info documentation instead, where it talks about sparse files.

> 
> Suppose 'somefile' is a file containing a lot of zeros.
> 
> Then I get:
> $ du -k somefile
> 12
> $ du somefile
> 12
> $ du -b somefile
> 4194432
> 
> It seems that du -b is returning the size of the file, and not the "disk 
> usage" of that file.

As it should, since -b implies --apparent-size, and a sparse file will
have a larger apparent size than disk usage size.

> 
> (Using coreutils-5.94, linux on both reiserfs and ext3)

Consider upgrading - the latest stable version of coreutils is 6.3.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFOB6T84KuGfSFAYARAhdQAJ4/XcP0EFdt7EIiqXCgImf9iqT28ACeNpus
R8OipmCABgFrcWyMNjSO/hQ=
=Oyrf
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to