diff options
author | NeilBrown <neilb@suse.com> | 2016-11-15 12:03:24 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-11-15 16:47:03 -0500 |
commit | 394e388e1e62d88f2771a3a65ed34c63c1e481bf (patch) | |
tree | 5852c9431b8934d1966cdb44e8468fac3cf5e49c /utils/mountd/auth.c | |
parent | 8f3d12ce1d156b8809dc936d9e452e14e2788b3e (diff) | |
download | nfs-utils-394e388e1e62d88f2771a3a65ed34c63c1e481bf.tar.gz nfs-utils-394e388e1e62d88f2771a3a65ed34c63c1e481bf.tar.xz nfs-utils-394e388e1e62d88f2771a3a65ed34c63c1e481bf.zip |
Remove all use of /var/lib/nfs/xtab
/var/lib/nfs/xtab is only used to find out what has been exported to
the kernel. This is more reliably done by reading
/proc/fs/nfs{,d}/export and nfs-utils uses that file if is available.
So xtab is only need if you have an incredibly ancient kernel which
doesn't have /proc/fs/nfs/export (and so which only supports NFSv2) or
if /proc is not mounted.
Neither of these are credible contexts to run a modern nfs-utils,
so stop creating or reading the xtab file.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mountd/auth.c')
-rw-r--r-- | utils/mountd/auth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 0881d9a..b612d88 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -46,7 +46,6 @@ void auth_init(void) { auth_reload(); - xtab_mount_write(); } /* |