Skip to contentSkip to conversation

cluster/gfs/gfs_fsck initialize.c

Cluster-devel [email protected] 1 participant 1 message Sep 20, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: rpeterso at sourceware.org 2006-09-20 16:37:37

Modified files:
gfs/gfs_fsck : initialize.c

Log message:
Addendum to bz 200883. If gfs_fsck can't finish initialization, it was exiting but not fixing the lock protocol back for normal use.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_fsck/initialize.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.9&r2=1.1.2.10

gfs/gfs_fsck/initialize.c +5 -1
@@ -389,13 +389,17 @@
 
 	/* initialize important inodes, fill the rgrp and journal indexes, etc */
 	if(fill_super_block(sbp)) {
-	        stack;
+		if(!sbp->opts->no)
+			block_mounters(sbp, 0);
+		stack;
 		return -1;
 	}
 
 	/* verify various things */
 
 	if(init_journals(sbp)) {
+		if(!sbp->opts->no)
+			block_mounters(sbp, 0);
 		stack;
 		return -1;
 	}