public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] nfsd update mtime/ctime on CLONE/COPY with delegated attritutes
@ 2026-04-07 23:50 Olga Kornievskaia
  2026-04-07 23:50 ` [PATCH 1/3] nfsd: update mtime/ctime on CLONE in presense of delegated attributes Olga Kornievskaia
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Olga Kornievskaia @ 2026-04-07 23:50 UTC (permalink / raw)
  To: chuck.lever, jlayton; +Cc: linux-nfs, neilb, Dai.Ngo, tom

generic/407 is failing in presence of delegated attributes and this patch series 
explores the solution where the CLONE compound returns updated mtime/ctime
in the GETATTR op in the compound.

It's broken into several pieces as I consider asynchronous copy update the trickest
because the copy thread currently have no dentry to call notify_change() on. And
if we are going to keep a copy of it while the copy is running we probably need to
take a reference on it (which I attempt to do).

An outstanding question I have is whether or not a CLONE/COPY operation is supposed to
also update the atime on the source file? But also atime for the dest file as well?
I'm updating both ctime and mtime for the destination (though Jeff only suggested
mtime and perhaps I'm missing something in updating ctime as well but I thought it 
was appropriate). 

COPY was tested by modifying the linux client to send a GETATTR in the COPY compound.
Whether or not the client should add the GETATTR to the COPY compound is yet another
question I have but I guess it would be for Trond.

Olga Kornievskaia (3):
  nfsd: update mtime/ctime on CLONE in presense of delegated attributes
  nfsd: update mtime/ctime on synchronous COPY with delegated attributes
  nfsd: update mtime/ctime on asynchronous COPY with delegated
    attributes

 fs/nfsd/nfs4proc.c | 38 +++++++++++++++++++++++++++++++++++++-
 fs/nfsd/xdr4.h     |  1 +
 2 files changed, 38 insertions(+), 1 deletion(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-04-08 16:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 23:50 [PATCH 0/3] nfsd update mtime/ctime on CLONE/COPY with delegated attritutes Olga Kornievskaia
2026-04-07 23:50 ` [PATCH 1/3] nfsd: update mtime/ctime on CLONE in presense of delegated attributes Olga Kornievskaia
2026-04-08 13:53   ` Chuck Lever
2026-04-08 15:08     ` Olga Kornievskaia
2026-04-07 23:50 ` [PATCH 2/3] nfsd: update mtime/ctime on synchronous COPY with " Olga Kornievskaia
2026-04-08 13:54   ` Chuck Lever
2026-04-08 15:24     ` Olga Kornievskaia
2026-04-08 16:49       ` Chuck Lever
2026-04-07 23:50 ` [PATCH 3/3] nfsd: update mtime/ctime on asynchronous " Olga Kornievskaia
2026-04-08 14:05   ` Chuck Lever
2026-04-08 15:43     ` Olga Kornievskaia
2026-04-08 11:13 ` [PATCH 0/3] nfsd update mtime/ctime on CLONE/COPY with delegated attritutes Jeff Layton
2026-04-08 11:17 ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox