Skip to content

NFSv4.2: Add support for inter-server to server COPY

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16VFS: Separate cross fs check from vfs_copy_file_rangefs/read_write.c include/linux/fs.h+24 -110 replies
2/16BTRFS: Use VFS copy offload helperfs/btrfs/ioctl.c+3 -00 replies
3/16VFS SQUASH use file_out instead of file_in for copy_file_rangefs/read_write.c+2 -20 replies
4/16NFS COPY xdr changesfs/nfs/nfs42xdr.c+22 -130 replies
5/16NFS add same file check and flush source and destination for COPYfs/nfs/nfs4file.c+15 -00 replies
6/16NFS add inter ssc functions to nfs42procfs/nfs/nfs42proc.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c +2 more+148 -30 replies
7/16NFS add COPY_NOTIFY operationfs/nfs/nfs42.h fs/nfs/nfs42proc.c fs/nfs/nfs42xdr.c +7 more+307 -50 replies
8/16NFSD add ca_source_server<> to COPYfs/nfsd/nfs4proc.c fs/nfsd/nfs4xdr.c fs/nfsd/xdr4.h+66 -30 replies
9/16NFSD add COPY_NOTIFY operationfs/nfsd/nfs4proc.c fs/nfsd/nfs4xdr.c fs/nfsd/xdr4.h+249 -20 replies
10/16NFS add ca_source_server<> to COPYfs/nfs/nfs42proc.c fs/nfs/nfs42xdr.c include/linux/nfs_xdr.h+48 -40 replies
11/16NFSD generalize nfsd4_compound_state flag namesfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/xdr4.h+11 -100 replies
12/16NFSD: allow inter server COPY to have a STALE source server fhfs/nfsd/nfs4proc.c fs/nfsd/nfs4xdr.c fs/nfsd/nfsd.h +1 more+81 -20 replies
13/16NFSD add nfs4 inter ssc to nfsd4_copyfs/nfsd/Kconfig fs/nfsd/nfs4proc.c+269 -90 replies
14/16NFS in copy use stateid returned by copy_notifyfs/nfs/nfs42proc.c+6 -40 replies
15/16NFS always use openstateid in COPY_NOTIFYfs/nfs/nfs42proc.c fs/nfs/nfs4_fs.h fs/nfs/nfs4state.c+12 -60 replies
16/16NFSD: extra stateid checking in read for interserver copyfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/state.h+45 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH Version 2 00/16] NFSv4.2: Add support for inter-server to server COPY

From: Andy Adamson <[email protected]>

Version 2:

Fixed xdr issues.
Fixed stateid issues
Added lease time to copy_notify return

Version 1:
These patches add client and server support for NFSv4.2 inter-server to server copy offload. These patches build upon Anna Schumaker's COPY Operation patches which are in turn built upon Zack Brown's VFS vfs_copy_file_range syscall. Additional functionality is added to the COPY operation past what Anna added. The COPY_NOTIFY operation is added.

The first three patches change Zach Brown's vfs_copy_file_range implementation. The first two patches relax the check for only performing copy offload between files with the same mount and super block, moving that check into a helper function that can be called (e.g. BTRFS) in a file systems copy_file_range function. The third patch changes vfs_copy_file_range to call the destination file (file_out) copy_file_range f_ops proceedure instead of the file_in version.

The remaining patches implement the COPY_NOTIFY operation and the inter-ssc changes to the COPY operation. One source server using NL4_NETADDR is currently supported. I used the test program from Anna's COPY operation patch set.

Andy Adamson (12):
VFS: Separate cross fs check from vfs_copy_file_range
BTRFS: Use VFS copy offload helper
VFS SQUASH use file_out instead of file_in for copy_file_range NFS add same file check and flush source and destination for COPY NFS add inter ssc functions to nfs42proc
NFS add COPY_NOTIFY operation
NFSD add ca_source_server<> to COPY
NFSD add COPY_NOTIFY operation
NFS add ca_source_server<> to COPY
NFSD generalize nfsd4_compound_state flag names
NFSD: allow inter server COPY to have a STALE source server fh NFSD add nfs4 inter ssc to nfsd4_copy

Olga Kornievskaia (4):
NFS COPY xdr changes
NFS in copy use stateid returned by copy_notify NFS always use openstateid in COPY_NOTIFY
NFSD: extra stateid checking in read for interserver copy

 fs/btrfs/ioctl.c              |   3 +
 fs/nfs/nfs42.h                |   2 +-
 fs/nfs/nfs42proc.c            | 238 +++++++++++++++++++++-
 fs/nfs/nfs42xdr.c             | 213 +++++++++++++++++++-
 fs/nfs/nfs4_fs.h              |   9 +-
 fs/nfs/nfs4file.c             |  17 +-
 fs/nfs/nfs4proc.c             |   8 +-
 fs/nfs/nfs4state.c            |   2 +-
 fs/nfs/nfs4xdr.c              |   1 +
 fs/nfsd/Kconfig               |  10 +
 fs/nfsd/nfs4proc.c            | 456 +++++++++++++++++++++++++++++++++++++++++-
 fs/nfsd/nfs4state.c           |  37 +++-
 fs/nfsd/nfs4xdr.c             | 203 ++++++++++++++++++-
 fs/nfsd/nfsd.h                |   2 +
 fs/nfsd/state.h               |   8 +
 fs/nfsd/xdr4.h                |  29 ++-
 fs/read_write.c               |  38 ++--
 include/linux/fs.h            |   1 +
 include/linux/nfs4.h          |   7 +
 include/linux/nfs4intercopy.h |  39 ++++
 include/linux/nfs_fs_sb.h     |   1 +
 include/linux/nfs_xdr.h       |  28 +++
 22 files changed, 1289 insertions(+), 63 deletions(-)
 create mode 100644 include/linux/nfs4intercopy.h
Signature · 1 line
1.8.3.1