[Cluster-devel] cluster/gfs-kernel/src/gfs rgrp.c

[email protected] <[email protected]>
Newsgroups com.redhat.cluster-devel
Message-ID <[email protected]>
CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione at sourceware.org	2008-01-30 06:57:41

Modified files:
	gfs-kernel/src/gfs: rgrp.c 

Log message:
	Bugzilla 227892:
	
	* Warn people about the RG corruption and request a gfs_fsck
	* Upon error detection, perform a minimum error data collection
	
	Port forward patch from RHEL5 branch to HEAD.
	
	Original author: Wendy Cheng <[email protected]>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/rgrp.c.diff?cvsroot=cluster&r1=1.21&r2=1.22

--- cluster/gfs-kernel/src/gfs/rgrp.c	2007/06/19 21:26:11	1.21
+++ cluster/gfs-kernel/src/gfs/rgrp.c	2008/01/30 06:57:41	1.22
@@ -1456,8 +1456,13 @@
 		goal = 0;
 	}
 
-	if (gfs_assert_withdraw(rgd->rd_sbd, x <= length))
-		blk = 0;
+	if (unlikely(x > length)) {
+		printk("GFS error: possible RG corruption\n");
+		printk("    please run gfs_fsck after withdraw\n");
+		dump_stack();
+		if (gfs_assert_withdraw(rgd->rd_sbd, x <= length))
+			blk = 0;
+	}
 
 	/* Attach bitmap buffer to trans, modify bits to do block alloc */
 	gfs_trans_add_bh(rgd->rd_gl, rgd->rd_bh[buf]);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.