mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs_gpfs: Move call to load GPFS library
Load the GPFS library from the connect function and leave the module init for only the module registration. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Jun 25 16:06:37 UTC 2023 on atb-devel-224
This commit is contained in:
parent
25e1e487a5
commit
9f5216912e
@ -2041,6 +2041,12 @@ static int vfs_gpfs_connect(struct vfs_handle_struct *handle,
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = gpfswrap_init();
|
||||
if (ret < 0) {
|
||||
DBG_ERR("Could not load GPFS library.\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = gpfswrap_lib_init(0);
|
||||
if (ret < 0) {
|
||||
DBG_ERR("Could not open GPFS device file: %s\n",
|
||||
@ -2616,13 +2622,6 @@ static struct vfs_fn_pointers vfs_gpfs_fns = {
|
||||
static_decl_vfs;
|
||||
NTSTATUS vfs_gpfs_init(TALLOC_CTX *ctx)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = gpfswrap_init();
|
||||
if (ret != 0) {
|
||||
DEBUG(1, ("Could not initialize GPFS library wrapper\n"));
|
||||
}
|
||||
|
||||
return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "gpfs",
|
||||
&vfs_gpfs_fns);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user