summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-12-03 17:10:11 -0500
committerSteve Dickson <steved@redhat.com>2014-12-03 17:10:11 -0500
commitd6ef125c4be83de1d94727bf6be74cd7c0bf424c (patch)
tree81c1a3e6975958683128ce3b25afef278d0f268a /support/include
parent72819502650d39e7791adebe737a6d04124d9ef3 (diff)
downloadnfs-utils-d6ef125c4be83de1d94727bf6be74cd7c0bf424c.tar.gz
nfs-utils-d6ef125c4be83de1d94727bf6be74cd7c0bf424c.tar.xz
nfs-utils-d6ef125c4be83de1d94727bf6be74cd7c0bf424c.zip
exportfs: warn when really nothing is exported
Throw 'No file systems exported!' iff no volume is exported rather then if some exports file is empty. Typically this can happen if the default /etc/exports file is empty and admin installed configuration into /etc/exports.d directory. This is follow-up for e725def62c73b4 commit. Signed-off-by: Pavel Raiskup <praiskup@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include')
-rw-r--r--support/include/exportfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/include/exportfs.h b/support/include/exportfs.h
index 3d89f12..3b92f04 100644
--- a/support/include/exportfs.h
+++ b/support/include/exportfs.h
@@ -133,7 +133,7 @@ struct addrinfo * client_resolve(const struct sockaddr *sap);
int client_member(const char *client,
const char *name);
-void export_read(char *fname, int verbose);
+int export_read(char *fname);
void export_reset(nfs_export *);
nfs_export * export_lookup(char *hname, char *path, int caconical);
nfs_export * export_find(const struct addrinfo *ai,