GNU bug report logs -
#6544
Fwd: bug in util du (du (GNU coreutils) 7.4), OS Ubuntu 9.10 Rus.
Previous Next
Reported by: aureliano <at> pochtamt.ru
Date: Wed, 30 Jun 2010 17:58:02 UTC
Severity: normal
Tags: notabug
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 6544 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello!
>> But 126440165670 bytes == 123.476.724,287 kb == 117,757 Gb != 20G (du -sh) > 33G (df, full size of partition). :-)
> Most likely, you are not seeing a bug, but the effect of hard links and
> sparse files.
> http://www.gnu.org/software/coreutils/faq/#df-and-du-report-different-information
> http://www.gnu.org/software/coreutils/faq/#df-Size-and-Used-and-Available-do-not-add-up
Yes, probably you are right at the expense of sparse files, because the sum of the sizes issued utility ls close to the amount issued by a du -b. But why the du without the keys, like to du -k, du -m and du -h gives the correct size (without sparse)?
Best regards. Aureliano.
On 06/30/2010 22:03:25, "Eric Blake" wrote:
On 06/30/2010 11:41 AM, aureliano <at> pochtamt.ru wrote:
Hello, and thanks for taking the time to write.
> $ du --version
> du (GNU coreutils) 7.4
Consider upgrading; the latest stable version is 8.5. However, that is
unlikely to be related to your problem.
>
> But 126440165670 bytes == 123.476.724,287 kb == 117,757 Gb != 20G (du -sh) > 33G (df, full size of partition). :-)
Most likely, you are not seeing a bug, but the effect of hard links and
sparse files.
http://www.gnu.org/software/coreutils/faq/#df-and-du-report-different-information
http://www.gnu.org/software/coreutils/faq/#df-Size-and-Used-and-Available-do-not-add-up
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[Message part 2 (text/html, inline)]
This bug report was last modified 13 years and 364 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.