vfs_default: use fsp_get_io_fd() for copy_file_range()
authorRalph Boehme <slow@samba.org>
Thu, 1 Jul 2021 13:19:56 +0000 (15:19 +0200)
committerJule Anger <janger@samba.org>
Wed, 11 Aug 2021 09:54:14 +0000 (09:54 +0000)
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)

source3/modules/vfs_default.c

index 65845d51b994a84a9d086b9b14cb39ca0a71c7d4..aa76eb5389c65cee21e7f435fb5691c5ada4f2a8 100644 (file)
@@ -2217,9 +2217,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);