summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volume-set.c
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-02-18 14:22:07 +0530
committerAnand Avati <avati@redhat.com>2013-02-19 00:09:34 -0800
commiteac54f6f76e6fca4f94028b47d963108f63c8f02 (patch)
tree0992b0443f4df9e622bee77aef050d0cbe46b07e /xlators/mgmt/glusterd/src/glusterd-volume-set.c
parent81dceec250c9b2f5b87650e28e736e04c4b8597e (diff)
glusterd: Added option description, and validation function fields.
In volopt_map_entry table, added option description field, and option validation function pointer. Change-Id: I21c6bccd175970592b470ce3ef3f418cb99a5a43 BUG: 903478 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/4535 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c36
1 files changed, 22 insertions, 14 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index 41719ec89..62e7b4259 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -41,6 +41,12 @@
*
* Seventh field is <op-version>.
*
+ * Eight field is description of option: If NULL, tried to fetch from
+ * translator code's xlator_options table.
+ *
+ * Nineth field is validation function: If NULL, xlator's option specific
+ * validation will be tried, otherwise tried at glusterd code itself.
+ *
* There are two type of entries: basic and special.
*
* - Basic entries are the ones where the <option> does _not_ start with
@@ -463,50 +469,52 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.voltype = "performance/write-behind",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable write-behind translator in the volume."
},
{ .key = "performance.read-ahead",
.voltype = "performance/read-ahead",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable read-ahead translator in the volume."
},
{ .key = "performance.io-cache",
.voltype = "performance/io-cache",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable io-cache translator in the volume."
},
{ .key = "performance.quick-read",
.voltype = "performance/quick-read",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable quick-read translator in the volume."
},
{ .key = "performance.open-behind",
.voltype = "performance/open-behind",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 2
+ .op_version = 2,
+ .description = "enable/disable open-behind translator in the volume."
},
{ .key = "performance.stat-prefetch",
.voltype = "performance/md-cache",
.option = "!perf",
.value = "on",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable meta-data caching translator in the "
+ "volume."
},
{ .key = "performance.client-io-threads",
.voltype = "performance/io-threads",
.option = "!perf",
.value = "off",
- .type = NO_DOC,
- .op_version = 1
+ .op_version = 1,
+ .description = "enable/disable io-threads translator in the client "
+ "graph of volume."
},
{ .key = "performance.nfs.write-behind",
.voltype = "performance/write-behind",