My stat /etc
command shows that the number of blocks is 24. I understand that a block here means 512 bytes. So the total size is 24 × 512 which makes it 12288 bytes.
But it shows 8192 bytes instead, and I can't understand why. To my mind it should be 12288 (3 × 4096).
$ stat /etc
File: /etc
Size: 8192 Blocks: 24 IO Block: 4096 directory
Device: fd00h/64768d Inode: 16777345 Links: 152
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-01-28 00:03:35.470200471 +0100
Modify: 2022-01-27 23:59:09.331606660 +0100
Change: 2022-01-27 23:59:09.331606660 +0100
Birth: -
/etc
is on an XFS file system.