]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Use integer value instead of boolean
authorAnoop C S <anoopcs@samba.org>
Mon, 22 Sep 2025 05:41:46 +0000 (11:11 +0530)
committerJule Anger <janger@samba.org>
Thu, 25 Sep 2025 13:24:44 +0000 (13:24 +0000)
ceph_ll_fsync() API[1] accepts the third and final argument as integer
and not a boolean value.

[1] https://github.com/ceph/ceph/blob/main/src/include/cephfs/libcephfs.h#L2041

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

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Sep 22 12:24:35 UTC 2025 on atb-devel-224

(cherry picked from commit 5200c120f34c4a28fa9f4cb55b46dbb9d90eb758)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Thu Sep 25 13:24:44 UTC 2025 on atb-devel-224

source3/modules/vfs_ceph_new.c

index 6c50be9bd10b65b0635e17f25e1e66a091d79e8d..45dbeed33beec5eafeb2df13ed444cfd5db61748 100644 (file)
@@ -2973,7 +2973,7 @@ static struct tevent_req *vfs_ceph_fsync_send(struct vfs_handle_struct *handle,
        SMBPROFILE_BYTES_ASYNC_SET_IDLE(state->profile_bytes);
 
        vfs_ceph_aio_start(state);
-       ret = vfs_ceph_ll_fsync(handle, state->cfh, false);
+       ret = vfs_ceph_ll_fsync(handle, state->cfh, 0);
        vfs_ceph_aio_finish(state, ret);
        if (ret != 0) {
                /* ceph_fsync returns -errno on error. */