• O
    Recover from stateid-type error on SETATTR · ae2ffef3
    Olga Kornievskaia 提交于
    Client can receives stateid-type error (eg., BAD_STATEID) on SETATTR when
    delegation stateid was used. When no open state exists, in case of application
    calling truncate() on the file, client has no state to recover and fails with
    EIO.
    
    Instead, upon such error, return the bad delegation and then resend the
    SETATTR with a zero stateid.
    
    Signed-off: Olga Kornievskaia <kolga@netapp.com>
    Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
    ae2ffef3
nfs4proc.c 235.4 KB