From d6270df748dcfd8d5a02c328518c2332da8fbed5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Aug 2009 13:00:54 -0700 Subject: Add "store create time" parameter (docs to follow) that stores the create time in the user.DosTimestamps EA. Jeremy. --- source3/param/loadparm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dbbd6e327d..35984716a2 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -446,6 +446,7 @@ struct service { bool bMap_system; bool bMap_hidden; bool bMap_archive; + bool bStoreCreateTime; bool bStoreDosAttributes; bool bDmapiSupport; bool bLocking; @@ -589,6 +590,7 @@ static struct service sDefault = { False, /* bMap_system */ False, /* bMap_hidden */ True, /* bMap_archive */ + False, /* bStoreCreateTime */ False, /* bStoreDosAttributes */ False, /* bDmapiSupport */ True, /* bLocking */ @@ -3065,6 +3067,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED, }, + { + .label = "store create time", + .type = P_BOOL, + .p_class = P_LOCAL, + .ptr = &sDefault.bStoreCreateTime, + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL, + }, { .label = "store dos attributes", .type = P_BOOL, @@ -5564,6 +5575,7 @@ FN_LOCAL_BOOL(lp_administrative_share, bAdministrative_share) FN_LOCAL_BOOL(lp_print_ok, bPrint_ok) FN_LOCAL_BOOL(lp_map_hidden, bMap_hidden) FN_LOCAL_BOOL(lp_map_archive, bMap_archive) +FN_LOCAL_BOOL(lp_store_create_time, bStoreCreateTime) FN_LOCAL_BOOL(lp_store_dos_attributes, bStoreDosAttributes) FN_LOCAL_BOOL(lp_dmapi_support, bDmapiSupport) FN_LOCAL_PARM_BOOL(lp_locking, bLocking) -- cgit