]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Allow cancellation during group descriptor checks.
authorValerie Aurora Henson <vaurora@redhat.com>
Wed, 5 Aug 2009 02:48:15 +0000 (22:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Aug 2009 02:48:15 +0000 (22:48 -0400)
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/super.c

index 22029674c9959790c8f5da346de1e72741a54a73..c71e03564950feb06f5f0329b9f2a7170b953fb8 100644 (file)
@@ -687,6 +687,9 @@ void check_super_block(e2fsck_t ctx)
 
                if (should_be)
                        ext2fs_group_desc_csum_set(fs, i);
+               /* If the user aborts e2fsck by typing ^C, stop right away */
+               if (ctx->flags & E2F_FLAG_SIGNAL_MASK)
+                       return;
        }
 
        /*