]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/exports.c
exports: add a configurable time-to-live for the kernel cache entries
[nfs-utils.git] / support / nfs / exports.c
index 551fc0d8400cc57ddfdd846c80e0119210ce69f6..6acb2b650bee9e9e22755fdc6064c7ba7c0fc448 100644 (file)
@@ -107,6 +107,7 @@ static void init_exportent (struct exportent *ee, int fromkernel)
        ee->e_nsquids = 0;
        ee->e_nsqgids = 0;
        ee->e_uuid = NULL;
+       ee->e_ttl = DEFAULT_TTL;
 }
 
 struct exportent *
@@ -332,6 +333,8 @@ dupexportent(struct exportent *dst, struct exportent *src)
                dst->e_mountpoint = strdup(src->e_mountpoint);
        if (src->e_fslocdata)
                dst->e_fslocdata = strdup(src->e_fslocdata);
+       if (src->e_uuid)
+               dst->e_uuid = strdup(src->e_uuid);
        dst->e_hostname = NULL;
 }
 
@@ -641,12 +644,6 @@ bad_option:
                        cp++;
        }
 
-       /*
-        * Turn on nohide which will allow this export to cross over
-        * the 'mount --bind' mount point.
-        */
-       if (ep->e_fslocdata)
-               setflags(NFSEXP_NOHIDE, active, ep);
        fix_pseudoflavor_flags(ep);
        ep->e_squids = squids;
        ep->e_sqgids = sqgids;