]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: refactor error-case in cephmount_mount_fs
authorShachar Sharon <ssharon@redhat.com>
Wed, 4 Sep 2024 11:55:50 +0000 (14:55 +0300)
committerJule Anger <janger@samba.org>
Mon, 17 Feb 2025 16:09:09 +0000 (16:09 +0000)
commit191d67baeadd6d0c2fb09663a6c4b2c6af7e8be9
tree77cf28059bc81674618f8e72d5a9ac0ae833faf6
parent8231235652671b59f504aa21cbf415a8d666396c
vfs_ceph_new: refactor error-case in cephmount_mount_fs

Align code-style of 'cephmount_mount_fs' with rest of the code: use
'goto' for bail-out upon error case (with proper cleanups). For the
common case of successful operation complete execution and return final
value. Added extra debug-logging for good-path case.

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

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d9b872afeee4dee49de2e6eb86e4b59e07804363)
source3/modules/vfs_ceph_new.c