mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +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:
parent
11a3a8d9b9
commit
0e3ddc27ed
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user