Skip to contentSkip to conversation

NFSv4.2: fix COPY attrs in presence of delegated timestamps

PATCH Superseded Olga Kornievskaia 1 participant 1 message Apr 13

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Olga Kornievskaia

author reviewer
#0 lore raw

PATCH v2 1/1 NFSv4.2: fix COPY attrs in presence of delegated timestamps

A similar to generic/407 test can be done with a COPY operation instead of CLONE (reflink). And it leads to same problem that ctime and mtime saved before doing a "cp" operation are the same as after.

---
 fs/nfs/nfs42proc.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/nfs42proc.c +1 -0
index 7b3ca68fb4bb..596866f3d049 100644
@@ -502,6 +502,7 @@ static ssize_t _nfs42_proc_copy(struct file *src,
 
 	nfs42_copy_dest_done(dst, pos_dst, res->write_res.count, oldsize_dst);
 	nfs_invalidate_atime(src_inode);
+	nfs_update_delegated_mtime(dst_inode);
 	status = res->write_res.count;
 out:
 	if (args->sync)
Signature · 1 line
2.52.0