hi guys
i got confused about stat output
stat manual says
File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
when i use stat command for passwd file it says
Code:
~#stat /etc/passwd
File: `/etc/passwd'
Size: 999 Blocks: 8 IO Block: 4096 regular file
Device: ca00h/51712d Inode: 845 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2011-05-26 12:14:41.000000000 +0200
Modify: 2011-05-26 12:14:41.000000000 +0200
Change: 2011-05-26 12:14:41.000000000 +0200
size is 999 bytes and every block is 4096 bytes how can this file use 8 blocks ???
8 blocks === 8 * 4096 = 32768
file size should be 32769 bytes to use 8 blocks !!