Why does 'stat -c%s\ %b small_dir_size' report a 0 block size?
Code:
~/tmp]$ mkdir test1 |
I guess that the file is so small that it is entirely contained in the inode (reference), not occupying any data blocks.
|
I think that only du can report the allocated blocks properly.
|
Quote:
|
The same reference as given by berndbausch, but more relevant part: Shortform Directories.
|
All times are GMT -5. The time now is 03:07 AM. |