From aee2a1d2136f505eae180b258374ca8812a6f4fb Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Tue, 24 Oct 2017 18:35:20 +0530 Subject: cluster/dht: make rebalance use truncate incase .. the brick file system does not support fallocate. Change-Id: Id76cda2d8bb3b223b779e5e7a34f17c8bfa6283c BUG: 1488103 Signed-off-by: Susant Palai --- xlators/cluster/dht/src/dht-shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-shared.c') diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c index f6ca8bd0926..f9e9ce8d60f 100644 --- a/xlators/cluster/dht/src/dht-shared.c +++ b/xlators/cluster/dht/src/dht-shared.c @@ -762,9 +762,10 @@ dht_init (xlator_t *this) pthread_cond_init (&defrag->fc_wakeup_cond, 0); defrag->global_error = 0; - } + conf->use_fallocate = 1; + conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_ON; if (dict_get_str (this->options, "lookup-unhashed", &temp_str) == 0) { /* If option is not "auto", other options _should_ be boolean */ -- cgit