X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fnfs%2Fexports.c;h=6acb2b650bee9e9e22755fdc6064c7ba7c0fc448;hp=551fc0d8400cc57ddfdd846c80e0119210ce69f6;hb=73840ef610accf4cf667427bc64805377c0d8394;hpb=1ca2e791eee22895907bceac07f2cbd2ea0193e8 diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 551fc0d..6acb2b6 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -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;