From 45f2c24dca18debb50e2f150e4f3130d22e8ff12 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 26 Nov 2024 00:42:14 -0500 Subject: [PATCH] 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 --- misc/tune2fs.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.3