From e058c899b13b1278b55cdaca03433ba90e549111 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Wed, 31 May 2023 11:13:51 -0700 Subject: [PATCH] vfs_gpfs: Register smbd process with GPFS 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 Reviewed-by: Stefan Metzmacher (cherry picked from commit 3b72136f6782d9704a197ab7b17201df6ff4d60d) --- source3/modules/vfs_gpfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 969e7744fce7..93748eab54c0 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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")); -- 2.34.1