summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2018-01-23 12:12:14 +0530
committerKrutika Dhananjay <kdhananj@redhat.com>2018-01-26 11:32:56 +0000
commit6b4432388c112457aa11270736c593664c2f0bc6 (patch)
treec4dd49c3fd76ba3720ba5e5dbfdaa94127828415 /xlators/features/shard
parent3cad44e8a7a0c481f3d1311b18aa854e4b33a1fb (diff)
features/shard: shard options for GD2.
Updates #302 Change-Id: Ife21440ffcf5805ce5858360dc94a456ead891e5 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/features/shard')
-rw-r--r--xlators/features/shard/src/shard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 35ad2bcf8b0..d076071158a 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -5165,6 +5165,9 @@ struct xlator_dumpops dumpops = {
struct volume_options options[] = {
{ .key = {"shard-block-size"},
.type = GF_OPTION_TYPE_SIZET,
+ .op_version = {GD_OP_VERSION_3_7_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"shard"},
.default_value = "64MB",
.min = SHARD_MIN_BLOCK_SIZE,
.max = SHARD_MAX_BLOCK_SIZE,