NFSv4.1: sp4_mach_cred: ask for WRITE and COMMIT
authorWeston Andros Adamson <dros@netapp.com>
Tue, 10 Sep 2013 22:44:30 +0000 (18:44 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Sep 2013 13:06:43 +0000 (09:06 -0400)
Request SP4_MACH_CRED WRITE and COMMIT support in spo_must_allow list --
they're already supported by the client.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index e1212914bc039542298d990b4e4201daddfa8b7f..4aeb14e902d98c439dd6caa0a00b8c1bad94abf0 100644 (file)
@@ -6153,11 +6153,13 @@ static const struct nfs41_state_protection nfs4_sp4_mach_cred_request = {
        },
        .allow.u.words = {
                [0] = 1 << (OP_CLOSE) |
-                     1 << (OP_LOCKU),
+                     1 << (OP_LOCKU) |
+                     1 << (OP_COMMIT),
                [1] = 1 << (OP_SECINFO - 32) |
                      1 << (OP_SECINFO_NO_NAME - 32) |
                      1 << (OP_TEST_STATEID - 32) |
-                     1 << (OP_FREE_STATEID - 32)
+                     1 << (OP_FREE_STATEID - 32) |
+                     1 << (OP_WRITE - 32)
        }
 };