VFS changes for NFSv4.2 "inter" server-to-server COPY op
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
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | fs: Don't copy beyond the end of the filefs/ | +3 | 8 replies | |
| 2/3 | VFS permit cross device vfs_copy_file_rangefs/ | +1 | 10 replies | |
| 3/3 | VFS don't try clone if superblocks are differentfs/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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