Timeline for "stat /etc" size mismatch: 24 blocks, size 8192 instead of 12288
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 28, 2022 at 11:12 | comment | added | Stephen Kitt | BTW the wiki is no longer the reference for Ext4 file system layout documentation; see kernel.org/doc/html/latest/filesystems/ext4/… instead. | |
| Jan 28, 2022 at 11:06 | comment | added | Stephen Kitt | @Gilles that’s interesting, I see the same on a Debian system (/etc/alternatives with 96 allocated blocks but a size of 45,056). AFAIK Ext4 doesn’t shrink its directories online, only with e2fsck -D); I don’t know what the extra block is there... | |
| Jan 28, 2022 at 11:02 | comment | added | Gilles 'SO- stop being evil' | I see a similar discrepancy for a few directories on an ext4 filesystem. For ext4, if there are 12 or more blocks then there's an indirect block (or more but that would be huge for a directory). But I also see an extra block for a few directories that are smaller: e.g. /etc/alternatives (it's an Ubuntu system) has 80 half-kB blocks but size 36864. Does this indicate that it used to have ≥12 data blocks, then it shrunk but there's still an indirect block? | |
| Jan 28, 2022 at 10:58 | history | edited | Stephen Kitt | CC BY-SA 4.0 | Could also be shrinkage. |
| Jan 28, 2022 at 10:46 | history | answered | Stephen Kitt | CC BY-SA 4.0 |