Ver código fonte

nfsd: add NFSEXP_PNFS to the exflags array

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Christoph Hellwig 10 anos atrás
pai
commit
9b3075c59f
2 arquivos alterados com 4 adições e 0 exclusões
  1. 1 0
      fs/nfsd/export.c
  2. 3 0
      include/uapi/linux/nfsd/export.h

+ 1 - 0
fs/nfsd/export.c

@@ -1158,6 +1158,7 @@ static struct flags {
 	{ NFSEXP_NOSUBTREECHECK, {"no_subtree_check", ""}},
 	{ NFSEXP_NOAUTHNLM, {"insecure_locks", ""}},
 	{ NFSEXP_V4ROOT, {"v4root", ""}},
+	{ NFSEXP_PNFS, {"pnfs", ""}},
 	{ 0, {"", ""}}
 };
 

+ 3 - 0
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