]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: switch to ceph_readdir_r
authorShachar Sharon <ssharon@redhat.com>
Tue, 3 Sep 2024 13:54:03 +0000 (16:54 +0300)
committerAnoop C S <anoopcs@samba.org>
Fri, 25 Oct 2024 10:29:44 +0000 (10:29 +0000)
commitce459ddbcd0f32252858a7640f6871057eb14645
tree7a48c87dbe4322482622452849a62910bd0c663c
parent0e08e63ae8bf4507779d6109e7f55da9d716053f
vfs_ceph_new: switch to ceph_readdir_r

Prefer a safe version of ceph_readdir, where the directory entry struct
is allocated by the caller. Use a dynamic-allocated 'struct dirent'
which is associated with a directory vfs_ceph_fh (optional), which is
allocated on-the-fly upon start of READDIR and released at the end or
CLOSEDIR (or unlikely readdir error).

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

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Fri Oct 25 10:29:44 UTC 2024 on atb-devel-224
source3/modules/vfs_ceph_new.c