Whamcloud - gitweb
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 2202967..c71e035 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;
        }
 
        /*