mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
vfs_btrfs: Also call vfs_offload_token_ctx_init() in btrfs_offload_write_send()
If a client for whatever reason calls FSCTL_SRV_COPYCHUNK[_WRITE] without FSCTL_SRV_REQUEST_RESUME_KEY, we call btrfs_offload_write_send before btrfs_offload_read_send. This is similar to 462b74da79c51f9ba6dbd24e603aa904485d5123 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15758 Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User(v4-21-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-21-test): Tue Dec 3 18:04:26 UTC 2024 on atb-devel-224
This commit is contained in:
parent
9a7047e8cc
commit
0f4e46398b
@ -261,6 +261,12 @@ static struct tevent_req *btrfs_offload_write_send(struct vfs_handle_struct *han
|
||||
|
||||
state->handle = handle;
|
||||
|
||||
status = vfs_offload_token_ctx_init(handle->conn->sconn->client,
|
||||
&btrfs_offload_ctx);
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
|
||||
tevent_req_set_cleanup_fn(req, btrfs_offload_write_cleanup);
|
||||
|
||||
status = vfs_offload_token_db_fetch_fsp(btrfs_offload_ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user