Skip to content

Commit

Permalink
nfsd41: share_access_to_flags should consider only nfs4.x share_acces…
Browse files Browse the repository at this point in the history
…s flags

Currently, it will not correctly ignore any nfsv4.1 signal flags
if the client sends them.

Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Benny Halevy authored and J. Bruce Fields committed Feb 17, 2012
1 parent 37c593c commit 00b5f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@ nfs4_check_delegmode(struct nfs4_delegation *dp, int flags)

static int share_access_to_flags(u32 share_access)
{
share_access &= ~NFS4_SHARE_WANT_MASK;
share_access &= NFS4_SHARE_ACCESS_MASK;

return share_access == NFS4_SHARE_ACCESS_READ ? RD_STATE : WR_STATE;
}
Expand Down

0 comments on commit 00b5f95

Please sign in to comment.