]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
v4root: set the time-to-live for V4ROOT exports to the DEFAULT.
authorNeilBrown <neilb@suse.de>
Tue, 1 May 2012 19:25:17 +0000 (15:25 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 1 May 2012 19:30:00 +0000 (15:30 -0400)
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>
utils/mountd/v4root.c

index b4fdcce611d1fe3e6e7662d8731dc87693e58224..57ee0b29ad7e6d504ad36426a1b37de67c249347 100644 (file)
@@ -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,