summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMi Jinlong <mijinlong@cn.fujitsu.com>2011-03-23 17:57:07 +0800
committerJ. Bruce Fields <bfields@redhat.com>2011-04-29 20:47:53 -0400
commita62573dc353b255dbbc8520bfdcb1c8a8c1ada87 (patch)
tree23c0b4cd8dfe6a0670237d946df6b5b184c25f1b /include/linux
parentac6721a13e5b1a90728e790600f827a5e5f5da2f (diff)
downloadlinux-stable-a62573dc353b255dbbc8520bfdcb1c8a8c1ada87.tar.gz
linux-stable-a62573dc353b255dbbc8520bfdcb1c8a8c1ada87.tar.bz2
linux-stable-a62573dc353b255dbbc8520bfdcb1c8a8c1ada87.zip
nfsd41: add flag checking for create_session
Teach the NFS server to reject invalid create_session flags. Also do some minor formatting adjustments. Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs4.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index b528f6d4b860..8937727e7039 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -570,9 +570,11 @@ struct nfs4_sessionid {
};
/* Create Session Flags */
-#define SESSION4_PERSIST 0x001
-#define SESSION4_BACK_CHAN 0x002
-#define SESSION4_RDMA 0x004
+#define SESSION4_PERSIST 0x001
+#define SESSION4_BACK_CHAN 0x002
+#define SESSION4_RDMA 0x004
+
+#define SESSION4_FLAG_MASK_A 0x007
enum state_protect_how4 {
SP4_NONE = 0,