diff mbox

nfsd: add NFSEXP_PNFS to the exflags array

Message ID 20150401083705.GA32325@infradead.org (mailing list archive)
State New, archived
Headers show

Commit Message

Christoph Hellwig April 1, 2015, 8:37 a.m. UTC
Ooops, looks like a debug printk sneaked in, here is the proper version:

---
From fd2478671133693f8d2c952649bcd79293394972 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@lst.de>
Date: Wed, 1 Apr 2015 10:31:48 +0200
Subject: nfsd: add NFSEXP_PNFS to the exflags array

And add a comment to export.h to remind people they have to do this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/nfsd/export.c                 | 1 +
 include/uapi/linux/nfsd/export.h | 3 +++
 2 files changed, 4 insertions(+)
diff mbox

Patch

diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index c3e3b6e..639d8c2 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1159,6 +1159,7 @@  static struct flags {
 	{ NFSEXP_NOSUBTREECHECK, {"no_subtree_check", ""}},
 	{ NFSEXP_NOAUTHNLM, {"insecure_locks", ""}},
 	{ NFSEXP_V4ROOT, {"v4root", ""}},
+	{ NFSEXP_PNFS, {"pnfs", ""}},
 	{ 0, {"", ""}}
 };
 
diff --git a/include/uapi/linux/nfsd/export.h b/include/uapi/linux/nfsd/export.h
index d3bd6ffe..0df7bd5 100644
--- a/include/uapi/linux/nfsd/export.h
+++ b/include/uapi/linux/nfsd/export.h
@@ -21,6 +21,9 @@ 
 
 /*
  * Export flags.
+ *
+ * Please update the expflags[] array in fs/nfsd/export.c when adding
+ * a new flag.
  */
 #define NFSEXP_READONLY		0x0001
 #define NFSEXP_INSECURE_PORT	0x0002