* amd/amfs_generic.c (amfs_lookup_one_mntfs): force FS_MKMNT on
authorIon Badulescu <ib42@cs.columbia.edu>
Tue, 27 Apr 2004 04:38:39 +0000 (04:38 +0000)
committerIon Badulescu <ib42@cs.columbia.edu>
Tue, 27 Apr 2004 04:38:39 +0000 (04:38 +0000)
the real mount of an autofs-based sublink

ChangeLog
amd/amfs_generic.c

index c7d265742a95169e3449bdb9387d8c6521f814fe..0b4a77f49d56167ae72526255b5723c8b6f0d9a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-27  Ion Badulescu  <ionut@moisil.badula.org>
+
+       * amd/amfs_generic.c (amfs_lookup_one_mntfs): force FS_MKMNT on
+       the real mount of an autofs-based sublink
+
 2004-04-25  Ion Badulescu  <ionut@moisil.badula.org>
 
        * amd/map.c (free_map_if_success): avoid dereferencing a pointer
index 1265e36b3af88feac61d112069d75f9fe405e58a..069b3d67f4cee80dea3e48876a8ca457e02c8831 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: amfs_generic.c,v 1.23 2004/01/06 03:56:19 ezk Exp $
+ * $Id: amfs_generic.c,v 1.24 2004/04/27 04:38:40 ib42 Exp $
  *
  */
 
@@ -314,9 +314,15 @@ amfs_lookup_one_mntfs(am_node *new_mp, mntfs *mf, char *ivec,
 
 #ifdef HAVE_FS_AUTOFS
   if (new_mp->am_flags & AMF_AUTOFS) {
+    new_mf->mf_fsflags = new_mf->mf_ops->autofs_fs_flags;
     if (on_autofs)
       new_mf->mf_flags |= MFF_ON_AUTOFS;
-    new_mf->mf_fsflags = new_mf->mf_ops->autofs_fs_flags;
+    /*
+     * sublinks are treated differently, so they always require
+     * creating a mounpoint for the underlying f/s
+     */
+    if (fs_opts->opt_sublink)
+      new_mf->mf_fsflags |= FS_MKMNT;
   }
   /*
    * A new filesystem is an autofs filesystems if: