When I run stat for a file test I got the following output.
> [ec2-user@ip-172-31-55-186 ~]$ stat test
> File: ‘test’ Size: 538
> Blocks: 8 IO Block: 4096 regular file Device: ca01h/51713d
> Inode: 524329 Links: 1 Access: (0664/-rw-rw-r--) Uid: (
> 500/ec2-user) Gid: ( 500/ec2-user) Access: 2015-05-04
> 17:28:43.644190329 +0000 Modify: 2015-05-04 17:28:43.644190329 +0000
> Change: 2015-05-04 17:28:43.648190373 +0000 Birth: -
My question is, if the file size is 538 bytes, why the file has to use 8 blocks? One IO block size is 4096 bytes, isn't 1 block is enough?