From a3864e8054cd047a004c7705c27b64b28912d947 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 18 Jun 2009 14:21:15 +0000 Subject: making dht and nufa's 'min-free-disk' option to take both percent and disk-size Originally from Paul Rawson http://patches.gluster.com/patch/391/ : patch re-submitted with patching guidelines. cluster/distribute, and cluster/nufa uses new option PERCENT_OR_SIZET for its option 'min-free-disk'. Signed-off-by: Anand V. Avati --- xlators/cluster/dht/src/dht-common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-common.h') diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 63a8bb2131d..1c2b6f443ee 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -117,7 +117,8 @@ struct dht_conf { gf_boolean_t search_unhashed; int gen; dht_du_t *du_stats; - uint32_t min_free_disk; + uint64_t min_free_disk; + char disk_unit; int32_t refresh_interval; gf_boolean_t unhashed_sticky_bit; struct timeval last_stat_fetch; -- cgit