summaryrefslogtreecommitdiff
path: root/e2fsck/super.c
diff options
context:
space:
mode:
authorValerie Aurora Henson <vaurora@redhat.com>2009-08-04 22:48:15 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-08-04 22:48:15 -0400
commitbee24f364ca921e10cefa0d3241b61383aa62866 (patch)
tree079f48684978ab172a2c257b42637f6959e4df8b /e2fsck/super.c
parent1d72214658d339bd4725fe74aa42397df419e914 (diff)
downloade2fsprogs-bee24f364ca921e10cefa0d3241b61383aa62866.tar.gz
e2fsck: Allow cancellation during group descriptor checks.
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/super.c')
-rw-r--r--e2fsck/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c
index 22029674..c71e0356 100644
--- a/e2fsck/super.c
+++ b/e2fsck/super.c
@@ -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;
}
/*