Skip to content
Commit d204c5d2 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.2: encode_readdir - only ask for labels when doing readdirplus



Currently, if the server is doing NFSv4.2 and supports labeled NFS, then
our on-the-wire READDIR request ends up asking for the label information,
which is then ignored unless we're doing readdirplus.
This patch ensures that READDIR doesn't ask the server for label information
at all unless the readdir->bitmask contains the FATTR4_WORD2_SECURITY_LABEL
attribute, and the readdir->plus flag is set.

While we're at it, optimise away the 3rd bitmap field if it is zero.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 3da580aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment