Skip to content

Add copy_file_range support for cifs

Sachin Prabhu linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Changes in v2 from the cover letter

Rename operation clone_range to copychunk_range Do not remove the ioctls which allow users to directly call FSCTL_SRV_COPYCHUNK_WRITE

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Rename clone_range to copychunk_rangefs/cifs/cifsglob.h fs/cifs/ioctl.c fs/cifs/smb2ops.c+16 -151 reply
2/2Introduce cifs_copy_file_range()fs/cifs/cifsfs.c fs/cifs/cifsfs.h fs/cifs/cifsglob.h +2 more+110 -681 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPavel Shilovsky
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/2 v2] Add copy_file_range support for cifs

This is used by the syscall copy_file_range() to provide server side copy facilities using the SMB2 ioctl FSCTL_SRV_COPYCHUNK_WRITE

v2:
Rename operation clone_range to copychunk_range Do not remove the ioctls which allow users to directly call FSCTL_SRV_COPYCHUNK_WRITE

Sachin Prabhu (2):
Rename clone_range to copychunk_range
Introduce cifs_copy_file_range()

 fs/cifs/cifsfs.c   | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/cifs/cifsfs.h   |  5 ++++
 fs/cifs/cifsglob.h |  7 +++--
 fs/cifs/ioctl.c    | 66 ++++-------------------------------------
 fs/cifs/smb2ops.c  | 32 ++++++++++++--------
 5 files changed, 120 insertions(+), 77 deletions(-)
Signature · 1 line
2.9.3