nfsd4: allow NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL | NFS4_SHARE_PUSH_DELEG_WHEN_UN...
authorBenny Halevy <bhalevy@tonian.com>
Thu, 20 Oct 2011 02:13:13 +0000 (19:13 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 24 Oct 2011 08:24:28 +0000 (04:24 -0400)
RFC5661 says:
   The client may set one or both of
   OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL and
   OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED.

Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c

index fdc09a5..706ada1 100644 (file)
@@ -677,6 +677,8 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *x)
        switch (w) {
        case NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL:
        case NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED:
+       case (NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL |
+             NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED):
                return nfs_ok;
        }
 xdr_error: