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
(cherry picked from commit
0e3ddc27ed6d603a21cb2b187f3295506d560604)
}
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);