summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-02-03 05:11:26 +0000
committerTim Potter <tpot@samba.org>2000-02-03 05:11:26 +0000
commit6df7bfbd9f5badd1d8489b7c329961441f71b471 (patch)
tree55f41580efe24c68b8d7020faf0280ecb75697cb /source3/param/loadparm.c
parent3d9a9cbe966fbbfccfcce3204e4bdcb1a8ccdcf5 (diff)
downloadsamba-6df7bfbd9f5badd1d8489b7c329961441f71b471.tar.gz
samba-6df7bfbd9f5badd1d8489b7c329961441f71b471.tar.bz2
samba-6df7bfbd9f5badd1d8489b7c329961441f71b471.zip
Added 'vfs object' and 'vfs options' smb.conf parameters.
(This used to be commit f872518972e7942e31b5ac5150d7ed8b0fbcf641)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 2b8040685c..839c9c9e16 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -299,6 +299,8 @@ typedef struct
char *writelist;
char *volume;
char *fstype;
+ char *szVfsObjectFile;
+ char *szVfsOptions;
int iMinPrintSpace;
int iWriteCacheSize;
int iCreate_mask;
@@ -405,6 +407,8 @@ static service sDefault =
NULL, /* writelist */
NULL, /* volume */
NULL, /* fstype */
+ NULL, /* vfs object */
+ NULL, /* vfs options */
0, /* iMinPrintSpace */
0, /* iWriteCacheSize */
0744, /* iCreate_mask */
@@ -486,6 +490,7 @@ static BOOL handle_copy(char *pszParmValue, char **ptr);
static BOOL handle_character_set(char *pszParmValue,char **ptr);
static BOOL handle_coding_system(char *pszParmValue,char **ptr);
static BOOL handle_client_code_page(char *pszParmValue,char **ptr);
+static BOOL handle_vfs_object(char *pszParmValue, char **ptr);
static void set_default_server_announce_type(void);
@@ -856,6 +861,10 @@ static struct parm_struct parm_table[] =
{"fake directory create times", P_BOOL,P_LOCAL, &sDefault.bFakeDirCreateTimes, NULL, NULL, FLAG_SHARE|FLAG_GLOBAL},
{"panic action", P_STRING, P_GLOBAL, &Globals.szPanicAction, NULL, NULL, 0},
+ {"VFS options", P_SEP, P_SEPARATOR},
+
+ {"vfs object", P_STRING, P_LOCAL, &sDefault.szVfsObjectFile, handle_vfs_object, NULL, 0},
+ {"vfs options", P_STRING, P_LOCAL, &sDefault.szVfsOptions, NULL, NULL, 0},
{NULL, P_BOOL, P_NONE, NULL, NULL, NULL, 0}
};
@@ -1340,6 +1349,7 @@ FN_LOCAL_STRING(lp_force_group,force_group)
FN_LOCAL_STRING(lp_readlist,readlist)
FN_LOCAL_STRING(lp_writelist,writelist)
FN_LOCAL_STRING(lp_fstype,fstype)
+FN_LOCAL_STRING(lp_vfsobj,szVfsObjectFile)
static FN_LOCAL_STRING(lp_volume,volume)
FN_LOCAL_STRING(lp_mangled_map,szMangledMap)
FN_LOCAL_STRING(lp_veto_files,szVetoFiles)
@@ -1888,6 +1898,21 @@ BOOL lp_file_list_changed(void)
}
/***************************************************************************
+ handle the interpretation of the vfs object parameter
+ *************************************************************************/
+static BOOL handle_vfs_object(char *pszParmValue,char **ptr)
+{
+ /* Set string value */
+
+ string_set(ptr,pszParmValue);
+
+ /* Do any other initialisation required for vfs. Note that
+ anything done here may have linking repercussions in nmbd. */
+
+ return True;
+}
+
+/***************************************************************************
handle the interpretation of the coding system parameter
*************************************************************************/
static BOOL handle_coding_system(char *pszParmValue,char **ptr)