]> 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 09:53:26 +0000 (09:53 +0000)
commitab29d3eb6eef45ee5436bc22681ebbefab1a4842
tree39062f2115ad21a6957a097b7a0d16ed8f8b34ba
parent3e00ee5a1ca43bd67bc6ddf01fc724de2b6f417e
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