]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfsd: update mtime/ctime on COPY in presence of delegated attributes
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 10 Apr 2026 16:09:20 +0000 (12:09 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 10 May 2026 16:41:03 +0000 (12:41 -0400)
commit4183cf383b6faec17a0882b84cd2d901dba62b16
tree292e264307c2557f8fc74bd59d6cde717c1ba762
parent2863bac7f49c4acd80a048ce52506a2b9c8db015
nfsd: update mtime/ctime on COPY in presence of delegated attributes

When delegated attributes are given on open, the file is opened with
NOCMTIME and modifying operations do not update mtime/ctime as to not get
out-of-sync with the client's delegated view. However, for COPY operation,
the server should update its view of mtime/ctime and reflect that in any
GETATTR queries.

Fixes: e5e9b24ab8fa ("nfsd: freeze c/mtime updates with outstanding WRITE_ATTRS delegation")
Cc: stable@vger.kernel.org
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/xdr4.h