summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-03-26 13:20:17 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-04-02 06:11:44 +0000
commitd0fbe01f96012b568b96b9e3b374a27ce26734a0 (patch)
tree1e760e2552ee23d179de8671bac5e0a3a8509ba5 /xlators/cluster
parent08fadcc2a706342e4eee79dc7d9b48ba01fcb312 (diff)
cluster/dht: Update dht option levels
Set the levels for DHT options based on https://review.gluster.org/#/c/19466/ Change-Id: I51b31a706a0b9517404e83224c89de145fd5d7e1 updates: #430 Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-shared.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c
index 51c9d9cb3cf..6b89fe797de 100644
--- a/xlators/cluster/dht/src/dht-shared.c
+++ b/xlators/cluster/dht/src/dht-shared.c
@@ -971,7 +971,8 @@ struct volume_options options[] = {
"from the hash subvolume. If set to OFF, it does not do a lookup "
"on the remaining subvolumes.",
.op_version = {1},
- .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE
+ .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE,
+ .level = OPT_STATUS_BASIC,
},
{ .key = {"lookup-optimize"},
.type = GF_OPTION_TYPE_BOOL,
@@ -981,6 +982,7 @@ struct volume_options options[] = {
"files, in case the hashed subvolume does not return any result. "
"This option disregards the lookup-unhashed setting, when enabled.",
.op_version = {GD_OP_VERSION_3_7_2},
+ .level = OPT_STATUS_ADVANCED,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"min-free-disk"},
@@ -990,6 +992,7 @@ struct volume_options options[] = {
"process starts balancing out the cluster, and logs will appear "
"in log files",
.op_version = {1},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"min-free-inodes"},
@@ -998,6 +1001,7 @@ struct volume_options options[] = {
.description = "after system has only N% of inodes, warnings "
"starts to appear in log files",
.op_version = {1},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"unhashed-sticky-bit"},
@@ -1009,6 +1013,7 @@ struct volume_options options[] = {
.default_value = "on",
.description = "This option if set to ON, forces the use of "
"readdirp, and hence also displays the stats of the files.",
+ .level = OPT_STATUS_ADVANCED,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"assert-no-child-down"},
@@ -1030,7 +1035,8 @@ struct volume_options options[] = {
.type = GF_OPTION_TYPE_ANY,
.description = "This option if set to ON, decommissions "
"the brick, so that no new data is allowed to be created "
- "on that brick."
+ "on that brick.",
+ .level = OPT_STATUS_ADVANCED,
},
{ .key = {"rebalance-cmd"},
.type = GF_OPTION_TYPE_INT,
@@ -1049,6 +1055,7 @@ struct volume_options options[] = {
"process. If set to OFF, the rebalance logs will only display the "
"time spent in each directory.",
.op_version = {2},
+ .level = OPT_STATUS_BASIC,
},
{ .key = {"readdir-optimize"},
.type = GF_OPTION_TYPE_BOOL,
@@ -1057,6 +1064,7 @@ struct volume_options options[] = {
"that allows DHT to requests non-first subvolumes to filter out "
"directory entries.",
.op_version = {1},
+ .level = OPT_STATUS_ADVANCED,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"rsync-hash-regex"},
@@ -1066,6 +1074,7 @@ struct volume_options options[] = {
"suffix and prefix used by rsync, to prevent relocation when the "
"file is renamed.",
.op_version = {3},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"extra-hash-regex"},
@@ -1075,6 +1084,7 @@ struct volume_options options[] = {
"suffix and prefix used by an application, to prevent relocation when "
"the file is renamed.",
.op_version = {3},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
{ .key = {"rebalance-filter"},
@@ -1097,6 +1107,7 @@ struct volume_options options[] = {
"with a probability proportional to their size. Otherwise, all "
"bricks will have the same probability (legacy behavior).",
.op_version = {GD_OP_VERSION_3_6_0},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
@@ -1198,6 +1209,7 @@ struct volume_options options[] = {
"be migrated at a time and aggressive will allow "
"max of [($(processing units) - 4) / 2), 4]",
.op_version = {GD_OP_VERSION_3_7_0},
+ .level = OPT_STATUS_BASIC,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
@@ -1208,6 +1220,7 @@ struct volume_options options[] = {
.description = " If enabled this feature will migrate the posix locks"
" associated with a file during rebalance",
.op_version = {GD_OP_VERSION_3_8_0},
+ .level = OPT_STATUS_ADVANCED,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},
@@ -1217,6 +1230,7 @@ struct volume_options options[] = {
.description = "If disabled, rebalance will not migrate files that "
"are being written to by an application",
.op_version = {GD_OP_VERSION_4_0_0},
+ .level = OPT_STATUS_ADVANCED,
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
},