]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tune2fs: update revision 0 file systems before changing the inode size
authorTheodore Ts'o <tytso@mit.edu>
Tue, 26 Nov 2024 05:42:14 +0000 (00:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Nov 2024 17:39:44 +0000 (12:39 -0500)
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 <tytso@mit.edu>
misc/tune2fs.c

index 49772d3eaf6c9dc1d9c38f41b9ea17d335ab8e0c..2548a7669ae3c33443106f81fc3217e8c96149f5 100644 (file)
@@ -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);