From mboxrd@z Thu Jan 1 00:00:00 1970 From: rpeterso@sourceware.org Date: 11 Aug 2006 23:22:09 -0000 Subject: [Cluster-devel] cluster/gfs2/convert gfs2_convert.c Message-ID: <20060811232209.7722.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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");