Skip to content

VFS changes for NFSv4.2 "inter" server-to-server COPY op

Olga Kornievskaia linux-fsdevel linux-nfs 1 version NAK

Status from this message: NAK, we really should not do operations between different superblocks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 18 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/3fs: Don't copy beyond the end of the filefs/read_write.c+3 -08 replies
2/3VFS permit cross device vfs_copy_file_rangefs/read_write.c+1 -510 replies
3/3VFS don't try clone if superblocks are differentfs/read_write.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/3] VFS changes for NFSv4.2 "inter" server-to-server COPY op

One patch adds a check for validity of arguments.

In another patch is crucial to the existance of NFSv4.2 inter SSC COPY. In order to implement the "inter" SSC COPY that involves two files from different superblock, it requires removal of the cross-devices check in VFS. Given that in the future the "cp" command will be written to use copy_file_range(), it would be important for "inter" SSC COPY to use the same interface.

This patch has first been met with an objection from Christoph saying that "no other VFS operation is supported between mountpoints" and another objection that since been addressed that "no xfstest coverage". We argue that no other VFS operation needed such support and now there exists one.

An alternative approach might be to define a new file system function (eg., bool allow_cross_device_op() that a filesystem can define and NFS will define it and return true. And based on the existence of that function and its result the check could be relaxed)?

If that check were to be removed, it would be beneficial to check the the superblocks for the clone operation so that it's not called unnecessarily.

Anna Schumaker (1):
fs: Don't copy beyond the end of the file

Andy Adamson (1):
VFS permit cross device vfs_copy_file_range

Olga Kornievskaia (1):
VFS don't try clone if superblocks are different

 fs/read_write.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.3.1