NFSv4.2: fix COPY attrs in presence of delegated timestamps
Subsystems (2)
Olga Kornievskaia
reviewerPATCH 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.
Signed-off-by Olga Kornievskaia <[email protected]>
--- fs/nfs/nfs42proc.c | 1 + 1 file changed, 1 insertion(+)
fs/nfs/nfs42proc.c +1 -0
@@ -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