bug-coreutils
[Top][All Lists]
Advanced

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

Re: mention why stat would show two blocks for one byte file


From: Jim Meyering
Subject: Re: mention why stat would show two blocks for one byte file
Date: Sat, 27 Nov 2004 09:26:49 +0100

Dan Jacobson <address@hidden> wrote:
> Nowhere on the stat or du info pages can the user figure out why
> $ echo>y; stat y
>   File: `y'
>   Size: 1               Blocks: 2          IO Block: 4096   regular file
> shows Blocks: 2. Ah, I know, stat is counting blocks by 512 bytes, but
> du counts them as 1024, which indeed must be how big they are as that
> is how big mkdir x; ls -l x will say. IO Block must be unreacted to
> what we are talking about here, by the way. Perhaps also delve into
> what you mean by IO Block on the stat info page.
> Anyways, the stat info page does not go into block size discussions or
> footnotes.  stat must be like tar where 512 is mentioned. So the onus
> is on you to say on the stat info and man pages just what block sizes
> you are talking about, lest we be perceived as, urm, blockheads.

:-)
Thank you for the good suggestions.

It'd be great if you could submit a patch or two
implementing them.




reply via email to

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