diff options
author | NeilBrown <neilb@suse.de> | 2012-05-01 15:25:17 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-05-01 15:30:00 -0400 |
commit | 8b50f9647aa4fd404e4cb70459c683eddc37f215 (patch) | |
tree | 4009b5869d29071383d4d8221d400565f2306bed | |
parent | 91bb95f2689e84856ecdf6fac365489d36709cf9 (diff) | |
download | nfs-utils-8b50f9647aa4fd404e4cb70459c683eddc37f215.tar.gz nfs-utils-8b50f9647aa4fd404e4cb70459c683eddc37f215.tar.xz nfs-utils-8b50f9647aa4fd404e4cb70459c683eddc37f215.zip |
v4root: set the time-to-live for V4ROOT exports to the DEFAULT.
e_ttl is set to the default in init_exportent().
However V4ROOT exports never see init_exportent() as they are created
with dupexportent from a template. So e_ttl does not get set and
export entries expire immediately.
This results in an upcall to mountd every time a V4ROOT directory
in accessed.
So set e_ttl in the template.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mountd/v4root.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index b4fdcce..57ee0b2 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -46,6 +46,7 @@ static nfs_export pseudo_root = { .e_nsqgids = 0, .e_fsid = 0, .e_mountpoint = NULL, + .e_ttl = DEFAULT_TTL, }, .m_exported = 0, .m_xtabent = 1, |