OSDN Git Service

NFSv4.1: Fix exclusive create
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 28 Mar 2018 20:18:17 +0000 (16:18 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commit609339c123843ace16d6b17f10205cd61460ab02
tree68ddc28611ce79ecd35775bdcd7d9460b7d04f2f
parentf6cdfa6dd629604d6a6af4de92b9c6eea6d52b1c
NFSv4.1: Fix exclusive create

When we use EXCLUSIVE4_1 mode, the server returns an attribute mask where
all the bits indicate which attributes were set, and where the verifier
was stored. In order to figure out which attribute we have to resend,
we need to clear out the attributes that are set in exclcreat_bitmask.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
[Anna: Fixed typo NFS4_CREATE_EXCLUSIVE4 -> NFS4_CREATE_EXCLUSIVE]
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c