From: Theodore Ts'o Date: Tue, 26 Nov 2024 05:42:14 +0000 (-0500) Subject: tune2fs: update revision 0 file systems before changing the inode size X-Git-Tag: v1.47.2-rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f2c24dca18debb50e2f150e4f3130d22e8ff12;p=thirdparty%2Fe2fsprogs.git tune2fs: update revision 0 file systems before changing the inode size Revsion 0 file systems only support the fixed 128 byte inode size. So before changing the inode size via tune2fs -I, we must first update the file system to revision 1. Addresses-Debian-Bug: #1086603 Signed-off-by: Theodore Ts'o --- diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 49772d3e..2548a766 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -2864,6 +2864,7 @@ static int resize_inode(ext2_filsys fs, unsigned long new_size) int new_ino_blks_per_grp; ext2fs_block_bitmap bmap; + ext2fs_update_dynamic_rev(fs); retval = ext2fs_read_inode_bitmap(fs); if (retval) { fputs(_("Failed to read inode bitmap\n"), stderr);