From bee24f364ca921e10cefa0d3241b61383aa62866 Mon Sep 17 00:00:00 2001 From: Valerie Aurora Henson Date: Tue, 4 Aug 2009 22:48:15 -0400 Subject: [PATCH] e2fsck: Allow cancellation during group descriptor checks. Signed-off-by: Valerie Aurora Henson Signed-off-by: "Theodore Ts'o" --- e2fsck/super.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2fsck/super.c b/e2fsck/super.c index 2202967..c71e035 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; } /* -- 1.8.3.1