diff options
author | Bayard Bell <bayard.bell@nexenta.com> | 2013-08-02 17:26:58 +0100 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2014-11-10 22:42:28 -0500 |
commit | 3f1de28d23e9724b017260ef6b282b278b6e38f9 (patch) | |
tree | 853bbbf17df2e49b0c6969a2dd81f5ae944ee59d /usr/src | |
parent | f4427914317470f516ca69daaed90f7efb3d76dc (diff) | |
download | illumos-gate-3f1de28d23e9724b017260ef6b282b278b6e38f9.tar.gz |
5217 Add cache timeout settings to idmapd manifest, increase defaults
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/idmap/idmapd/idmap.xml | 8 | ||||
-rw-r--r-- | usr/src/cmd/idmap/idmapd/idmap_config.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/cmd/idmap/idmapd/idmap.xml b/usr/src/cmd/idmap/idmapd/idmap.xml index 87933b5507..1f051a2936 100644 --- a/usr/src/cmd/idmap/idmapd/idmap.xml +++ b/usr/src/cmd/idmap/idmapd/idmap.xml @@ -96,6 +96,14 @@ name='value_authorization' type='astring' value='solaris.smf.value.idmap' /> + <propval + name='id_cache_timeout' + type='count' + value='86400' /> + <propval + name='name_cache_timeout' + type='count' + value='604800' /> </property_group> <property_group name='debug' type='application' > diff --git a/usr/src/cmd/idmap/idmapd/idmap_config.c b/usr/src/cmd/idmap/idmapd/idmap_config.c index 9060fa4179..02ae8029cf 100644 --- a/usr/src/cmd/idmap/idmapd/idmap_config.c +++ b/usr/src/cmd/idmap/idmapd/idmap_config.c @@ -56,8 +56,8 @@ * config/id_cache_timeout = count: seconds * config/name_cache_timeout = count: seconds */ -#define ID_CACHE_TMO_DEFAULT 600 -#define NAME_CACHE_TMO_DEFAULT 3600 +#define ID_CACHE_TMO_DEFAULT 86400 +#define NAME_CACHE_TMO_DEFAULT 604800 enum event_type { EVENT_NOTHING, /* Woke up for no good reason */ |