mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
vfs_gpfs: make vfs_gpfs_connect() a no-op on IPC shares
We don't ever expect any filesystem IO operations to be called on an IPC shares, so there's no need to initialize the module here. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14771 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
parent
070dce224b
commit
1a3ac7a940
@ -1868,6 +1868,10 @@ static int vfs_gpfs_connect(struct vfs_handle_struct *handle,
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (IS_IPC(handle->conn)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
gpfswrap_lib_init(0);
|
||||
|
||||
config = talloc_zero(handle->conn, struct gpfs_config_data);
|
||||
@ -1880,7 +1884,7 @@ static int vfs_gpfs_connect(struct vfs_handle_struct *handle,
|
||||
check_fstype = lp_parm_bool(SNUM(handle->conn), "gpfs",
|
||||
"check_fstype", true);
|
||||
|
||||
if (check_fstype && !IS_IPC(handle->conn)) {
|
||||
if (check_fstype) {
|
||||
const char *connectpath = handle->conn->connectpath;
|
||||
struct statfs buf = { 0 };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user