retitle 1086603 tune2fs, dumpe2fs: sometimes do not show the inode size thanks
Dixi quod…
>I am working on a tool that checks all your (mounted)
>ext2/3/4fs for inode sizes < 256 (Y2038 bug) having
Attaching that for public utility, for now; fixes welcome.
It gets even weirder: dumpe2fs also does not report it:
tg@cafe:~ $ for x in dm-{2,1,5,8}; do echo = /dev/$x; sudo dumpe2fs -fh /dev/$x
| fgrep Inod; done
= /dev/dm-2
dumpe2fs 1.46.2 (28-Feb-2021)
Inode count: 327680
Inodes per group: 8192
Inode blocks per group: 512
Inode size: 256
= /dev/dm-1
dumpe2fs 1.46.2 (28-Feb-2021)
Inode count: 16777216
Inodes per group: 8192
Inode blocks per group: 512
Inode size: 256
= /dev/dm-5
dumpe2fs 1.46.2 (28-Feb-2021)
Inode count: 262144
Inodes per group: 8192
Inode blocks per group: 256
= /dev/dm-8
dumpe2fs 1.46.2 (28-Feb-2021)
Inode count: 65536
Inodes per group: 8192
Inode blocks per group: 256
Inode size: 128
dm-2 (root) has it reported,
as does dm-1 (the one I used tune2fs -I 256 on).
dm-5 does NOT have it reported,
dm-8 does have it reported.
I created both dm-5 (just mkfs.ext4 -r 0 -L …) and
dm-8 (mkfs.ext4 -I 128, to test this) today, the
former because I needed one anyway.
How can dumpe2fs not report that line at all‽
y2038chk-ext2fs.sh.gz
Description: application/gzip

