Skip to contentSkip to conversation

cluster/gfs2/mount mount.gfs2.c

Cluster-devel [email protected] 1 participant 1 message Jul 19, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: adas at sourceware.org 2007-07-19 22:20:50

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&r1=1.24&r2=1.25

gfs2/mount/mount.gfs2.c +4 -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();