Most recent kernels have trouble with trying to parse the pid hostname
authorChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:09:47 +0000 (20:09 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:09:47 +0000 (20:09 +0000)
and do locking. What before was a silent failure, now there is a warning
printed and the mount is rejected. This is the simplest fix:
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479884)

amd/amfs_toplvl.c

index 26134a7643276efc0b804b87ec7e0535160bc698..f63b48cd837e1e65799a4521ee27928998bb9a32 100644 (file)
@@ -227,6 +227,11 @@ amfs_toplvl_mount(am_node *mp, mntfs *mf)
       xstrlcat(opts, toplvl_opts, sizeof(opts));
     }
 
+#ifdef MNTTAB_OPT_NOLOCK
+    xstrlcat(opts, ",", sizeof(opts));
+    xstrlcat(opts, MNTTAB_OPT_NOLOCK, sizeof(opts));
+#endif /* MNTTAB_OPT_NOLOCK */
+
 #ifdef MNTTAB_OPT_NOAC
     if (gopt.auto_attrcache == 0) {
       xstrlcat(opts, ",", sizeof(opts));