gfs2-utils: master - fsck.gfs2: Check for interrupt when resolving duplicates

Bob Peterson rpeterso at fedoraproject.org
Mon May 20 16:18:21 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=9c52a36321f730c9859fb006326936530fe4da8f
Commit:        9c52a36321f730c9859fb006326936530fe4da8f
Parent:        b4b33946e354f2591661ea7263b64e54fba61fb0
Author:        Bob Peterson <rpeterso at redhat.com>
AuthorDate:    Fri Mar 15 12:28:56 2013 -0700
Committer:     Bob Peterson <rpeterso at redhat.com>
CommitterDate: Mon May 20 11:12:46 2013 -0500

fsck.gfs2: Check for interrupt when resolving duplicates

This patch adds another check for interrupts while resolving duplicate
block references in pass1b.
---
 gfs2/fsck/pass1b.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gfs2/fsck/pass1b.c b/gfs2/fsck/pass1b.c
index 56b77f5..7108bb4 100644
--- a/gfs2/fsck/pass1b.c
+++ b/gfs2/fsck/pass1b.c
@@ -459,6 +459,9 @@ static int resolve_dup_references(struct gfs2_sbd *sdp, struct duptree *b,
 	int found_good_ref = 0;
 
 	osi_list_foreach_safe(tmp, ref_list, x) {
+		if (skip_this_pass || fsck_abort)
+			return FSCK_OK;
+
 		id = osi_list_entry(tmp, struct inode_with_dups, list);
 		dh->b = b;
 		dh->id = id;


More information about the cluster-commits mailing list