vfs_gpfs: Register smbd process with GPFS
authorChristof Schmitt <cs@samba.org>
Wed, 31 May 2023 18:13:51 +0000 (11:13 -0700)
committerJule Anger <janger@samba.org>
Mon, 3 Jul 2023 07:57:08 +0000 (07:57 +0000)
Issue API call to tell the file system that this is a Samba process.
This fixed the GPFS handling of Samba since the rename of smbd processes
in commit 5955dc1e4fd.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3b72136f6782d9704a197ab7b17201df6ff4d60d)

source3/modules/vfs_gpfs.c

index 969e7744fce7ae84cf901ea49399dd279364b979..93748eab54c01a86428e46b1ff94142c36f930b8 100644 (file)
@@ -2043,6 +2043,12 @@ static int vfs_gpfs_connect(struct vfs_handle_struct *handle,
 
        gpfswrap_lib_init(0);
 
+       ret = gpfswrap_register_cifs_export();
+       if (ret < 0) {
+               DBG_ERR("Failed to register with GPFS: %s\n", strerror(errno));
+               return ret;
+       }
+
        config = talloc_zero(handle->conn, struct gpfs_config_data);
        if (!config) {
                DEBUG(0, ("talloc_zero() failed\n"));