summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec
diff options
context:
space:
mode:
authorKamal Mohanan <kmohanan@redhat.com>2017-12-12 17:17:37 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-12-21 07:04:32 +0000
commit8564311e8bb5971823c6b32aa5c9620d80c7cabd (patch)
treeca7280ad8e27a42c0bdf69e81c82a306f2183ae9 /xlators/cluster/ec
parent1d32720335ffd8835c4a7b3164fe9aa9028f77a5 (diff)
cluster/ec: Add default value for the redundancy option
Updates #302 Change-Id: Ifccc6a64c2b2a3b3a0133e6c8042cdf61a0838ce Signed-off-by: Kamal Mohanan <kmohanan@redhat.com>
Diffstat (limited to 'xlators/cluster/ec')
-rw-r--r--xlators/cluster/ec/src/ec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c
index 1d1dcae815b..74709b0e2b4 100644
--- a/xlators/cluster/ec/src/ec.c
+++ b/xlators/cluster/ec/src/ec.c
@@ -1420,6 +1420,7 @@ struct volume_options options[] =
{
.key = { "redundancy" },
.type = GF_OPTION_TYPE_INT,
+ .default_value = "{{ volume.redundancy }}",
.description = "Maximum number of bricks that can fail "
"simultaneously without losing data."
},