From mboxrd@z Thu Jan 1 00:00:00 1970 From: adas@sourceware.org Date: 19 Jul 2007 22:21:20 -0000 Subject: [Cluster-devel] cluster/gfs2/mount mount.gfs2.c Message-ID: <20070719222120.19348.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 Branch: RHEL51 Changes by: adas at sourceware.org 2007-07-19 22:21:20 Modified files: gfs2/mount : mount.gfs2.c Log message: Fix for bz248177: We delete the old /etc/mtab entry and add a new one during remount. Any changes made to the mount options using remount are reflected in /etc/mtab now. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/mount.gfs2.c.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.20.2.4&r2=1.20.2.4.2.1 --- cluster/gfs2/mount/mount.gfs2.c 2007/06/13 18:13:33 1.20.2.4 +++ cluster/gfs2/mount/mount.gfs2.c 2007/07/19 22:21:20 1.20.2.4.2.1 @@ -232,7 +232,10 @@ log_debug("mount(2) ok"); mount_result_lockproto(proto, &mo, &sb, 0); - if (!(mo.flags & MS_REMOUNT)) + if (mo.flags & MS_REMOUNT) { + del_mtab_entry(&mo); + add_mtab_entry(&mo); + } else add_mtab_entry(&mo); unblock_sigint();