Lines Matching defs:config
314 container->config = NULL;
461 ret_container->config = options;
517 void *get_value(config_options_t * config, char *name)
519 while (config->name) {
520 if (!strcmp(config->name, name)) {
521 if (config->value)
522 return config->value;
526 config++;
531 char *get_config_str(config_options_t * config, char *name)
533 return get_value(config, name);
536 uint32_t get_config_u32(config_options_t * config, char *name)
538 void *value = get_value(config, name);
544 uint8_t get_config_bool(config_options_t * config, char *name)
546 void *value = get_value(config, name);
552 uint64_t get_config_u64(config_options_t * config, char *name)
554 void *value = get_value(config, name);
560 double get_config_double(config_options_t * config, char *name)
562 void *value = get_value(config, name);
617 void set_weight(ffsb_tg_t * tg, config_options_t * config)
621 config_options_t *tmp_config = config;
630 get_config_u32(config,
748 tg_config = tg->config;
782 return tmp_cont->config;
799 return tmp_cont->config;
809 static void init_threadgroup(ffsb_config_t * fc, config_options_t * config,
815 num_threads = get_config_u32(config, "num_threads");
819 if (get_config_str(config, "bindfs")) {
824 if (!strcmp(get_config_str(config, "bindfs"),
828 if (strcmp(get_config_str(config, "bindfs"),
831 get_config_str(config, "bindfs"));
838 tg->read_random = get_config_bool(config, "read_random");
839 tg->read_size = get_config_u64(config, "read_size");
840 tg->read_skip = get_config_bool(config, "read_skip");
841 tg->read_skipsize = get_config_u32(config, "read_skipsize");
843 tg->write_random = get_config_bool(config, "write_random");
844 tg->write_size = get_config_u64(config, "write_size");
845 tg->fsync_file = get_config_bool(config, "fsync_file");
847 tg->wait_time = get_config_u32(config, "op_delay");
849 tg_set_read_blocksize(tg, get_config_u32(config, "read_blocksize"));
850 tg_set_write_blocksize(tg, get_config_u32(config, "write_blocksize"));
852 set_weight(tg, config);
862 config_options_t *config = get_fs_config(fc, num);
869 fs->basedir = get_config_str(config, "location");
871 if (get_config_str(config, "clone")) {
876 if (!strcmp(get_config_str(config, "clone"),
880 if (strcmp(get_config_str(config, "clone"),
883 get_config_str(config, "clone"));
886 config = tmp_config;
889 fs->num_dirs = get_config_u32(config, "num_dirs");
890 fs->num_start_files = get_config_u32(config, "num_files");
891 fs->minfilesize = get_config_u64(config, "min_filesize");
892 fs->maxfilesize = get_config_u64(config, "max_filesize");
893 fs->desired_fsutil = get_config_double(config, "desired_util");
894 fs->init_fsutil = get_config_double(config, "init_util");
895 fs->init_size = get_config_u64(config, "init_size");
898 if (get_config_bool(config, "reuse"))
910 if (get_config_bool(config, "agefs")) {
919 init_threadgroup(fc, age_cont->config, age_tg, 0);
924 if (get_config_u32(config, "create_blocksize"))
925 fs->create_blocksize = get_config_u32(config,
930 if (get_config_u32(config, "age_blocksize"))
931 fs->age_blocksize = get_config_u32(config, "age_blocksize");
935 list_head = (value_list_t *) get_value(config, "size_weight");
959 config_options_t *config;
971 config = tmp_cont->config;
972 if (get_config_bool(config, "enable_stats")) {
975 (value_list_t *) get_value(config,
987 (value_list_t *) get_value(config,
990 && get_config_bool(config, "enable_range"))
1013 config_options_t *config;
1030 config = get_tg_config(fc, i);
1031 init_threadgroup(fc, config, &fc->groups[i], i);