diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht.c')
| -rw-r--r-- | xlators/cluster/dht/src/dht.c | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht.c b/xlators/cluster/dht/src/dht.c index 13f382af1..c926a1cf4 100644 --- a/xlators/cluster/dht/src/dht.c +++ b/xlators/cluster/dht/src/dht.c @@ -294,7 +294,14 @@ init (xlator_t *this)                            &temp_str) == 0) {  	        gf_string2boolean (temp_str, &conf->unhashed_sticky_bit);  	} -         + +	conf->use_readdirp = 0; + +	if (dict_get_str (this->options, "use-readdirp", +                          &temp_str) == 0) { +	        gf_string2boolean (temp_str, &conf->use_readdirp); +	} +          conf->disk_unit = 'p';          conf->min_free_disk = 10; @@ -435,5 +442,8 @@ struct volume_options options[] = {          { .key = {"unhashed-sticky-bit"},            .type = GF_OPTION_TYPE_BOOL          }, +        { .key = {"use-readdirp"}, +          .type = GF_OPTION_TYPE_BOOL +        },  	{ .key  = {NULL} },  };  | 
