From c08f1382e5609bc686c3df95ff1e267804b37a61 Mon Sep 17 00:00:00 2001 From: Kinglong Mee Date: Mon, 6 Apr 2015 17:00:44 -0400 Subject: 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 Signed-off-by: Kinglong Mee Signed-off-by: Steve Dickson --- support/nfs/exports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit