]> 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)
committerJule Anger <janger@samba.org>
Mon, 17 Feb 2025 09:53:26 +0000 (09:53 +0000)
commit3e00ee5a1ca43bd67bc6ddf01fc724de2b6f417e
tree5c17f93b1932e202e72549de9d7929bb15086d9d
parent7302ea418a4fc9f98973af3db4b8a7b90e8dd978
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

(cherry picked from commit ce459ddbcd0f32252858a7640f6871057eb14645)
source3/modules/vfs_ceph_new.c