- Timestamp:
- 12/06/10 16:26:00 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/Orange-Elaine-Distr-Dir-Branch/src/common/misc/server-config.c
r8544 r8648 111 111 static DOTCONF_CB(get_precreate_batch_size); 112 112 static DOTCONF_CB(get_precreate_low_threshold); 113 static DOTCONF_CB(get_init_num_dirdata_handles); 113 114 static DOTCONF_CB(get_client_retry_limit); 114 115 static DOTCONF_CB(get_client_retry_delay); … … 690 691 CTX_DEFAULTS|CTX_SERVER_OPTIONS, "0, 16, 256, 16, 16, 16, 0"}, 691 692 693 /* Initial number of dirdata handles when creating a new directory. 694 * TODO: determine the default value, use 2 as a start 695 */ 696 {"InitNumDirdataHandles",ARG_INT, get_init_num_dirdata_handles,NULL, 697 CTX_DEFAULTS|CTX_SERVER_OPTIONS, "2"}, 698 692 699 /* Specifies if file stuffing should be enabled or not. Default is 693 700 * enabled; this option is only provided for benchmarking purposes … … 1697 1704 return NULL; 1698 1705 } 1706 1707 DOTCONF_CB(get_init_num_dirdata_handles) 1708 { 1709 struct server_configuration_s *config_s = 1710 (struct server_configuration_s *)cmd->context; 1711 if(config_s->configuration_context == CTX_SERVER_OPTIONS && 1712 config_s->my_server_options == 0) 1713 { 1714 return NULL; 1715 } 1716 if(cmd->data.value <= 0) 1717 { 1718 return "InitNumDirdataHandles has to be a positive integer!\n"; 1719 } 1720 config_s->init_num_dirdata_handles = cmd->data.value; 1721 return NULL; 1722 } 1723 1724 1699 1725 1700 1726 DOTCONF_CB(get_server_job_flow_timeout)
