diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-shared.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-shared.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c index 860f3e716f0..1e666bd8140 100644 --- a/xlators/cluster/dht/src/dht-shared.c +++ b/xlators/cluster/dht/src/dht-shared.c @@ -29,6 +29,8 @@ */ struct volume_options options[]; +extern dht_methods_t dht_methods; + void dht_layout_dump (dht_layout_t *layout, const char *prefix) { @@ -701,6 +703,8 @@ dht_init (xlator_t *this) if (dht_set_subvol_range(this)) goto err; + conf->methods = &dht_methods; + return 0; err: @@ -847,6 +851,33 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_XLATOR }, + /* tier options */ + { .key = {"tier-promote-frequency"}, + .type = GF_OPTION_TYPE_INT, + .default_value = "120", + .description = "Frequency to promote files to fast tier" + }, + + { .key = {"tier-demote-frequency"}, + .type = GF_OPTION_TYPE_INT, + .default_value = "120", + .description = "Frequency to demote files to slow tier" + }, + + { .key = {"write-freq-thresold"}, + .type = GF_OPTION_TYPE_INT, + .default_value = "0", + .description = "Defines the write fequency " + "that would be considered hot" + }, + + { .key = {"read-freq-thresold"}, + .type = GF_OPTION_TYPE_INT, + .default_value = "0", + .description = "Defines the read fequency " + "that would be considered hot" + }, + /* switch option */ { .key = {"pattern.switch.case"}, .type = GF_OPTION_TYPE_ANY |