RFC NFS Server Side Copy
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Improve on the copyfile systemcallfs/ include/ | +8 | 0 replies | |
| 2/5 | NFSD: Implement the COPY callfs/ fs/ fs/ +5 more | +230 | 2 replies | |
| 3/5 | NFS: Add COPY nfs operationfs/ fs/ fs/ +4 more | +265 | 1 reply | |
| 4/5 | NFSD: Defer copyingfs/ fs/ fs/ +2 more | +221 | 17 replies | |
| 5/5 | NFS: Change copy to support async serversfs/ fs/ fs/ +4 more | +129 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/5] NFS Server Side Copy
From: Bryan Schumaker <[email protected]>
These patches build on Zach Brown's copyfile patches to add server side copy to both the NFS client and the NFS server.
The first patch improves on the copyfile syscall to make it usable on my machine and also includes notes on other potential problems that I've found. The remaining patches first implement a sync copy, then expand to async.
My testing was done on a server exporting an ext4 filesystem exporting an ext4 filesystem. I compared copying using the cp command to copying with the copyfile system call.
File size: 512 MB
cp: 4.244 seconds
copyfile: 0.961 seconds
File size: 1024 MB
cp: 9.091 seconds
copyfile: 1.919 seconds
File size: 1536 MB
cp: 15.291 seconds
copyfile: 6.016 seconds
Repeating these tests on a btrfs exported filesystem supporting the copyfile system call drops the time for copyfile to about 0.01 seconds.
Feel free to send me any questions, comments or other thoughts!
- Bryan
Bryan Schumaker (5):
Improve on the copyfile systemcall
NFSD: Implement the COPY call
NFS: Add COPY nfs operation
NFSD: Defer copying
NFS: Change copy to support async servers
fs/copy_range.c | 10 +++- fs/nfs/callback.h | 13 ++++ fs/nfs/callback_proc.c | 9 +++ fs/nfs/callback_xdr.c | 54 ++++++++++++++++- fs/nfs/inode.c | 2 + fs/nfs/nfs4_fs.h | 7 +++ fs/nfs/nfs4file.c | 101 +++++++++++++++++++++++++++++++ fs/nfs/nfs4proc.c | 16 +++++ fs/nfs/nfs4xdr.c | 150 +++++++++++++++++++++++++++++++++++++++++++++++ fs/nfsd/nfs4callback.c | 136 ++++++++++++++++++++++++++++++++++++++++++ fs/nfsd/nfs4proc.c | 104 ++++++++++++++++++++++++++++++-- fs/nfsd/nfs4state.c | 15 ++++- fs/nfsd/nfs4xdr.c | 121 +++++++++++++++++++++++++++++++++++++- fs/nfsd/state.h | 23 +++++++- fs/nfsd/vfs.c | 9 +++ fs/nfsd/vfs.h | 1 + fs/nfsd/xdr4.h | 24 ++++++++ fs/nfsd/xdr4cb.h | 9 +++ include/linux/nfs4.h | 14 ++++- include/linux/nfs_xdr.h | 33 +++++++++++ include/linux/syscalls.h | 1 + 21 files changed, 836 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.3