summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-04-06 17:00:44 -0400
committerSteve Dickson <steved@redhat.com>2015-04-06 17:00:44 -0400
commitc08f1382e5609bc686c3df95ff1e267804b37a61 (patch)
tree105e09bb9012480ea527267c9168b8a4eeaf7a5c
parentcdd16bef988a36868a7105c14d4665a53c1c5481 (diff)
downloadnfs-utils-c08f1382e5609bc686c3df95ff1e267804b37a61.tar.gz
nfs-utils-c08f1382e5609bc686c3df95ff1e267804b37a61.tar.xz
nfs-utils-c08f1382e5609bc686c3df95ff1e267804b37a61.zip
exportfs: add missing comma for exports ent
When using pnfs with "fsid=0", exportfs prints error as, $ exportfs -a exportfs: /var/lib/nfs/etab:1: unknown keyword "no_pnfsfsid=0" Commit cdd16bef98 ("nfs-utils: add support for the "pnfs" export option") miss the comma after "pnfs"/"on_pnfs" operation. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/nfs/exports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c
index 9b325b9..761a046 100644
--- a/support/nfs/exports.c
+++ b/support/nfs/exports.c
@@ -275,7 +275,7 @@ putexportent(struct exportent *ep)
"no_" : "");
if (ep->e_flags & NFSEXP_NOREADDIRPLUS)
fprintf(fp, "nordirplus,");
- fprintf(fp, "%spnfs", (ep->e_flags & NFSEXP_PNFS)? "" : "no_");
+ fprintf(fp, "%spnfs,", (ep->e_flags & NFSEXP_PNFS)? "" : "no_");
if (ep->e_flags & NFSEXP_FSID) {
fprintf(fp, "fsid=%d,", ep->e_fsid);
}