btrfs icon indicating copy to clipboard operation
btrfs copied to clipboard

|FSCTL_OFFLOAD_READ|+|FSCTL_OFFLOAD_WRITE| support

Open gisburn opened this issue 4 months ago • 1 comments

Could you please add |FSCTL_OFFLOAD_READ|+|FSCTL_OFFLOAD_WRITE| support ?

This is technically intended for intra-server and inter-server copies, but it is also useful to implement in-kernel copies (so no data are copied to the userland and back) when block cloning is not desired.

xcopy.exe (on Win11 /NOCLONE must be set, otherwise block cloning is used by default), robotcopy and Windows Explorer use this. Please make sure to handle sparse files correctly (i.e. copy holes in sparse files as-is).

gisburn avatar Aug 21 '25 08:08 gisburn

Interesting, thank you. Yes, this looks like it would be both feasible and useful - I'll look into it.

maharmstone avatar Aug 21 '25 20:08 maharmstone