bug-coreutils
[Top][All Lists]
Advanced

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

mention why stat would show two blocks for one byte file


From: Dan Jacobson
Subject: mention why stat would show two blocks for one byte file
Date: Sat, 27 Nov 2004 01:17:04 +0800

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.




reply via email to

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