summaryrefslogtreecommitdiffstats
path: root/support/include/exportfs.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-11-15 12:03:24 -0500
committerSteve Dickson <steved@redhat.com>2016-11-15 16:47:03 -0500
commit394e388e1e62d88f2771a3a65ed34c63c1e481bf (patch)
tree5852c9431b8934d1966cdb44e8468fac3cf5e49c /support/include/exportfs.h
parent8f3d12ce1d156b8809dc936d9e452e14e2788b3e (diff)
downloadnfs-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 'support/include/exportfs.h')
-rw-r--r--support/include/exportfs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/support/include/exportfs.h b/support/include/exportfs.h
index 32d4fe9..08ef30a 100644
--- a/support/include/exportfs.h
+++ b/support/include/exportfs.h
@@ -96,7 +96,7 @@ typedef struct mexport {
struct mexport * m_next;
struct mclient * m_client;
struct exportent m_export;
- int m_exported; /* known to knfsd. -1 means not sure */
+ int m_exported; /* known to knfsd. */
int m_xtabent : 1, /* xtab entry exists */
m_mayexport: 1, /* derived from xtabbed */
m_changed : 1, /* options (may) have changed */
@@ -150,9 +150,7 @@ int export_unexport(nfs_export *);
int xtab_mount_read(void);
int xtab_export_read(void);
-int xtab_mount_write(void);
int xtab_export_write(void);
-void xtab_append(nfs_export *);
int secinfo_addflavor(struct flav_info *, struct exportent *);