From 22018b8b887c2677d30bbb4589f800197edf0e98 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 8 Oct 2010 13:15:57 +0200 Subject: s3:vfs:gpfs convert sharemodes/leases parameter convert gpfs:sharemodes and gpfs:leases parameters from a global setting to a per share setting --- source3/modules/gpfs.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/modules/gpfs.c') diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index e05980888b..c8fb88d92e 100644 --- a/source3/modules/gpfs.c +++ b/source3/modules/gpfs.c @@ -24,8 +24,6 @@ #include "gpfs_gpl.h" #include "vfs_gpfs.h" -static bool gpfs_share_modes; -static bool gpfs_leases; static bool gpfs_getrealfilename; static bool gpfs_winattr; @@ -47,10 +45,6 @@ bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, unsigned int deny = GPFS_DENY_NONE; int result; - if (!gpfs_share_modes) { - return True; - } - if (gpfs_set_share_fn == NULL) { return False; } @@ -96,10 +90,6 @@ int set_gpfs_lease(int fd, int leasetype) { int gpfs_type = GPFS_LEASE_NONE; - if (!gpfs_leases) { - return True; - } - if (gpfs_set_lease_fn == NULL) { errno = EINVAL; return -1; @@ -249,8 +239,6 @@ void init_gpfs(void) init_gpfs_function(&gpfs_get_winattrs_fn,"gpfs_get_winattrs"); - gpfs_share_modes = lp_parm_bool(-1, "gpfs", "sharemodes", True); - gpfs_leases = lp_parm_bool(-1, "gpfs", "leases", True); gpfs_getrealfilename = lp_parm_bool(-1, "gpfs", "getrealfilename", True); gpfs_winattr = lp_parm_bool(-1, "gpfs", "winattr", False); -- cgit