[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso 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.


--- 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");

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]