Re: [PATCH V3 1/1] NFSD: detect mismatch of file handle and delegation stateid in OPEN op

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chuck Lever <chuck.lever@xxxxxxxxxx>

On Tue, 10 Jun 2025 08:35:28 -0700, Dai Ngo wrote:
> NFSD: detect mismatch of file handle and delegation stateid in OPEN op
> 
> When the client sends an OPEN with claim type CLAIM_DELEG_CUR_FH or
> CLAIM_DELEGATION_CUR, the delegation stateid and the file handle
> must belong to the same file, otherwise return NFS4ERR_INVAL.
> 
> Note that RFC8881, section 8.2.4, mandates the server to return
> NFS4ERR_BAD_STATEID if the selected table entry does not match the
> current filehandle. However returning NFS4ERR_BAD_STATEID in the
> OPEN causes the client to retry the operation and therefor get the
> client into a loop. To avoid this situation we return NFS4ERR_INVAL
> instead.
> 
> [...]

Applied to nfsd-testing, thanks!

[1/1] NFSD: detect mismatch of file handle and delegation stateid in OPEN op
      commit: 9fd9dde965d8848b240a47dafe558a1e5f24e9ca

--
Chuck Lever





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux