• Trond Myklebust's avatar
    NFSv4: Servers should only check SETATTR stateid open mode on size change · ee3ae84e
    Trond Myklebust authored
    The NFSv4 and NFSv4.1 specs are both clear that the server should only check
    stateid open mode if a SETATTR specifies the size attribute. If the
    open mode is not one that allows writing, then it returns NFS4ERR_OPENMODE.
    
    In the case where the SETATTR is not changing the size, the client will
    still pass it the delegation stateid to ensure that the server does not
    recall that delegation. In that case, the server should _ignore_ the
    delegation open mode, and simply apply standard permission checks.
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    ee3ae84e
nfs4proc.c 188 KB