1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

vfs_default: use fsp_get_io_fd() for copy_file_range()

Unintentionally used fsp_get_pathref_fd() in the initial patchset.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12033

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul  1 17:45:49 UTC 2021 on sn-devel-184
This commit is contained in:
Ralph Boehme 2021-07-01 15:19:56 +02:00 committed by Jeremy Allison
parent 11a3a8d9b9
commit 0e3ddc27ed

View File

@ -2279,9 +2279,9 @@ static NTSTATUS vfswrap_offload_copy_file_range(struct tevent_req *req)
}
while (state->remaining > 0) {
nwritten = copy_file_range(fsp_get_pathref_fd(state->src_fsp),
nwritten = copy_file_range(fsp_get_io_fd(state->src_fsp),
&state->src_off,
fsp_get_pathref_fd(state->dst_fsp),
fsp_get_io_fd(state->dst_fsp),
&state->dst_off,
state->remaining,
0);