bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47085: du: why does 'usage' show prefixes 'Z' or 'Y' if they are dis


From: Glenn Golden
Subject: bug#47085: du: why does 'usage' show prefixes 'Z' or 'Y' if they are disallowed?
Date: Fri, 12 Mar 2021 03:03:10 -0700
User-agent: Cyrus-JMAP/3.5.0-alpha0-206-g078a48fda5-fm-20210226.001-g078a48fd

On Thu, Mar 11, 2021, at 21:53, L A Walsh wrote:
>
> Also something I didn't see as being clear:
>   I don't see where it says it will always round up to next higher
>   unit (it may say it somewhere, I just don't see it and was
>   surprised to see 'du -BT /tmp|hsort -s' show all objects as
>   being 1.0T and for hsort to show a summary of ~148T
>   (hsort sorts by human prefixes and has an optional '-s'
>   switch that shows an additive sum of the sizes).
> 

See coreutils.info Section 14.2 (entitled "du: Estimate file space  usage",
second paragraph), and coreutils.info Section 2.3  (entitled "Block size",
first paragraph).  Both state that fractional block sizes are rounded up
to the nearest integer.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]