Hi,
this patch adds a ignore_mtab() check before actually trying to
modify /etc/mtab.
This is needed in certain situations if /etc/mtab is a link to /proc/mounts.
Regards,
Mark
--
Gruss / Regards,
Dipl.-Ing. Mark Hlawatschek
http://www.atix.de/
http://www.open-sharedroot.org/
**
ATIX Informationstechnologie und Consulting AG
Einsteinstr. 10
85716 Unterschleissheim
Deutschland/Germany
--- cluster/gfs2/mount/mtab.c 2008-02-14 10:57:37.000000000 +0100
+++ cluster/gfs2/mount/mtab.c.new 2008-02-14 11:18:25.000000000 +0100
@@ -95,6 +95,9 @@
read_proc_mounts(mo);
+ if (ignore_mtab())
+ return;
+
lock_mtab();
file = fopen("/etc/mtab", "a");
@@ -125,6 +128,9 @@
struct stat sbuf;
int found = 0;
+ if (ignore_mtab())
+ return;
+
lock_mtab();
old_umask = umask(077);