From 99351618cd15da15ee875f143154ea7f8e28eaf4 Mon Sep 17 00:00:00 2001 From: krishna Date: Wed, 22 Apr 2009 23:43:58 -0700 Subject: "option unhashed-sticky-bit on/off" "option unhashed-sticky-bit on/off" will configure distribute to set or not the S_ISVTX bit in the stat.st_mode of the actual file in case it is pointed to by the link file. This can be enabled during migration. Signed-off-by: Anand V. Avati --- xlators/cluster/dht/src/dht.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xlators/cluster/dht/src/dht.c') diff --git a/xlators/cluster/dht/src/dht.c b/xlators/cluster/dht/src/dht.c index ddf95832f66..4dac7301ec9 100644 --- a/xlators/cluster/dht/src/dht.c +++ b/xlators/cluster/dht/src/dht.c @@ -110,6 +110,14 @@ init (xlator_t *this) gf_string2boolean (lookup_unhashed_str, &conf->search_unhashed); } + + conf->unhashed_sticky_bit = 0; + + if (dict_get_str (this->options, "unhashed-sticky-bit", + &lookup_unhashed_str) == 0) { + gf_string2boolean (lookup_unhashed_str, + &conf->unhashed_sticky_bit); + } conf->min_free_disk = 10; -- cgit