[Cluster-devel] cluster/gfs2/convert gfs2_convert.c

rpeterso at sourceware.org rpeterso at sourceware.org
Fri Aug 11 23:22:09 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso at sourceware.org	2006-08-11 23:22:09

Modified files:
	gfs2/convert   : gfs2_convert.c 

Log message:
	Reset other inode bits when temporarily setting S_IFDIR bit.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/convert/gfs2_convert.c.diff?cvsroot=cluster&r1=1.5&r2=1.6

--- cluster/gfs2/convert/gfs2_convert.c	2006/07/17 22:06:18	1.5
+++ cluster/gfs2/convert/gfs2_convert.c	2006/08/11 23:22:09	1.6
@@ -787,6 +787,7 @@
 	/* apparently only for directories.  So we need to fake out libgfs2  */
 	/* so that it adjusts for the metaheader by faking out the inode to  */
 	/* look like a directory, temporarily.                               */
+	sbp->md.riinode->i_di.di_mode &= ~S_IFMT;
 	sbp->md.riinode->i_di.di_mode |= S_IFDIR; 
 	if (ri_update(sbp, &rgcount)){
 		log_crit("Unable to fill in resource group information.\n");




More information about the Cluster-devel mailing list