summaryrefslogtreecommitdiffstats
path: root/source/param/loadparm.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-01-05 11:35:29 +0000
committerVolker Lendecke <vlendec@samba.org>2006-01-05 11:35:29 +0000
commit2d492971650fbb936291f34715a0b7fe6f95d0a9 (patch)
treef06be530d10a18f9653bf26df9fab80d68898422 /source/param/loadparm.c
parent9d74e1799fffa7a50cabca03683c48ae817afdef (diff)
downloadsamba-2d492971650fbb936291f34715a0b7fe6f95d0a9.tar.gz
samba-2d492971650fbb936291f34715a0b7fe6f95d0a9.tar.xz
samba-2d492971650fbb936291f34715a0b7fe6f95d0a9.zip
r12721: GPFS 2.4 on Linux will contain some windows semantics, ie share modes and
oplocks across the cluster. Adapt Samba to it. The gpfs API is called via libgpfs.so. This code is written with dlopen(), so that you can compile on a system with gpfs installed and later on run on systems without gpfs available. So to actually make Samba call gpfs share mode calls you need to compile with gpfs.h and libgpfs.so around and set 'gpfs share = yes' on the shares you export from GPFS. Volker
Diffstat (limited to 'source/param/loadparm.c')
-rw-r--r--source/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 526bce9b60e..3fa6dee5a24 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -433,6 +433,7 @@ typedef struct
BOOL bProfileAcls;
BOOL bMap_acl_inherit;
BOOL bAfs_Share;
+ BOOL bGpfs_Share;
BOOL bEASupport;
BOOL bAclCheckPermissions;
BOOL bAclMapFullControl;
@@ -569,6 +570,7 @@ static service sDefault = {
False, /* bProfileAcls */
False, /* bMap_acl_inherit */
False, /* bAfs_Share */
+ False, /* bGpfs_Share */
False, /* bEASupport */
True, /* bAclCheckPermissions */
True, /* bAclMapFullControl */
@@ -967,6 +969,7 @@ static struct parm_struct parm_table[] = {
{"announce as", P_ENUM, P_GLOBAL, &Globals.announce_as, NULL, enum_announce_as, FLAG_ADVANCED},
{"map acl inherit", P_BOOL, P_LOCAL, &sDefault.bMap_acl_inherit, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL},
{"afs share", P_BOOL, P_LOCAL, &sDefault.bAfs_Share, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL},
+ {"gpfs share", P_BOOL, P_LOCAL, &sDefault.bGpfs_Share, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL},
{"max mux", P_INTEGER, P_GLOBAL, &Globals.max_mux, NULL, NULL, FLAG_ADVANCED},
{"max xmit", P_INTEGER, P_GLOBAL, &Globals.max_xmit, NULL, NULL, FLAG_ADVANCED},
@@ -2001,6 +2004,7 @@ FN_LOCAL_BOOL(_lp_use_sendfile, bUseSendfile)
FN_LOCAL_BOOL(lp_profile_acls, bProfileAcls)
FN_LOCAL_BOOL(lp_map_acl_inherit, bMap_acl_inherit)
FN_LOCAL_BOOL(lp_afs_share, bAfs_Share)
+FN_LOCAL_BOOL(lp_gpfs_share, bGpfs_Share)
FN_LOCAL_BOOL(lp_acl_check_permissions, bAclCheckPermissions)
FN_LOCAL_BOOL(lp_acl_group_control, bAclGroupControl)
FN_LOCAL_BOOL(lp_acl_map_full_control, bAclMapFullControl)