]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Don't set the group descriptor checksums if the fsck was cancelled
authorTheodore Ts'o <tytso@mit.edu>
Tue, 18 May 2010 02:54:06 +0000 (22:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 May 2010 03:04:40 +0000 (23:04 -0400)
It's a bad idea to set the checksums if e2fsck is aborted by the user,
and it often causes an error message, "Inode bitmap not loaded while
setting block group checksum info".

Addresses-Launchpad-Bug: #582035

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c

index 383c651f8d6bbc352203da8278100bd6d1a8333c..be165011be0692135e8317de69da779f953fcd79 100644 (file)
@@ -1445,7 +1445,8 @@ no_journal:
                }
        }
 
-       if (sb->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM &&
+       if ((run_result & E2F_FLAG_CANCEL) == 0 &&
+           sb->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM &&
            !(ctx->options & E2F_OPT_READONLY)) {
                retval = ext2fs_set_gdt_csum(ctx->fs);
                if (retval) {