Skip to contentSkip to conversation

lnfs: remove export flag for label NFS exports

PATCH New Steve Dickson 1 participant 1 message Dec 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lnfs: remove export flag for label NFS exports

It was deemed through code review, that having an
"security_label" export flag was not needed.

---
 fs/nfsd/export.c                 | 3 ---
 fs/nfsd/nfs4xdr.c                | 5 +----
 include/uapi/linux/nfsd/export.h | 1 -
 3 files changed, 1 insertion(+), 8 deletions(-)
fs/nfsd/export.c +0 -3
index 251eca7..a3946cf 100644
@@ -1112,9 +1112,6 @@ static struct flags {
 	{ NFSEXP_ASYNC, {"async", "sync"}},
 	{ NFSEXP_GATHERED_WRITES, {"wdelay", "no_wdelay"}},
 	{ NFSEXP_NOHIDE, {"nohide", ""}},
-#ifdef CONFIG_NFSD_V4_SECURITY_LABEL
-	{ NFSEXP_SECURITY_LABEL, {"security_label", ""}},
-#endif
 	{ NFSEXP_CROSSMOUNT, {"crossmnt", ""}},
 	{ NFSEXP_NOSUBTREECHECK, {"no_subtree_check", ""}},
 	{ NFSEXP_NOAUTHNLM, {"insecure_locks", ""}},
fs/nfsd/nfs4xdr.c +1 -4
index 58e205c..a234ed4 100644
@@ -2214,10 +2214,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp,
 		if (!aclsupport)
 			word0 &= ~FATTR4_WORD0_ACL;
 #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
-		if (exp->ex_flags & NFSEXP_SECURITY_LABEL)
-			word2 |= FATTR4_WORD2_SECURITY_LABEL;
-		else
-			word2 &= ~FATTR4_WORD2_SECURITY_LABEL;
+		word2 |= FATTR4_WORD2_SECURITY_LABEL;
 #else
 		word2 &= ~FATTR4_WORD2_SECURITY_LABEL;
 #endif
include/uapi/linux/nfsd/export.h +0 -1
index e6c76d9..b892b6a 100644
@@ -28,7 +28,6 @@
 #define NFSEXP_ALLSQUASH	0x0008
 #define NFSEXP_ASYNC		0x0010
 #define NFSEXP_GATHERED_WRITES	0x0020
-#define NFSEXP_SECURITY_LABEL	0x0040  /* Support security label fattr4 */
 /* 80 100 currently unused */
 #define NFSEXP_NOHIDE		0x0200
 #define NFSEXP_NOSUBTREECHECK	0x0400
Signature · 1 line
1.7.11.7