From: Valerie Aurora Henson Date: Wed, 5 Aug 2009 02:48:15 +0000 (-0400) Subject: e2fsck: Allow cancellation during group descriptor checks. X-Git-Tag: v1.42-WIP-0702~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bee24f364ca921e10cefa0d3241b61383aa62866;p=thirdparty%2Fe2fsprogs.git e2fsck: Allow cancellation during group descriptor checks. Signed-off-by: Valerie Aurora Henson Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/super.c b/e2fsck/super.c index 22029674c..c71e03564 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; } /*