Skip to content

cloner: add support for clone_file_range for cifs

Ronnie Sahlberg fstests 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] cloner: add support for clone_file_range for cifs

This is a trivial patch that adds support for copy_file_range for cifs. This uses the copy_file_range interface which cifs.ko supports.

Note that cloner.c uses an ioctl() for copying an entire file. This is an older interface from before cifs.ko added proper copy_file_range support but both interfaces eventually end up in the same codepaths and use the same SMB2 commands on the wire.
Could argue that we could/should use copy_file_range() for the whole file case as well but there is no harm leaving it as-is using the older interface.