glusterd: Help does not show performance.nfs.* opt

Gluster does not display performance.nfs.* options in help.

In Gluster NFS, write-behind is the only performance xlator
which gets loaded. Gluster volume set help should display all
the options provided by write-behind xlator.

Change-Id: I4a41151a6c15eeed8e8d123a6044c6f0c42b56b0
BUG: 1090826
Signed-off-by: Santosh Kumar Pradhan <spradhan@redhat.com>
Reviewed-on: http://review.gluster.org/7546
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Santosh Kumar Pradhan 2014-04-24 14:39:20 +05:30 committed by Vijay Bellur
parent a3c12fdabe
commit c52ab5eb52

View File

@ -709,24 +709,48 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.op_version = 1,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.nfs.flush-behind",
.voltype = "performance/write-behind",
.option = "flush-behind",
.op_version = 1,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.write-behind-window-size",
.voltype = "performance/write-behind",
.option = "cache-size",
.op_version = 1,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.nfs.write-behind-window-size",
.voltype = "performance/write-behind",
.option = "cache-size",
.op_version = 1,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.strict-o-direct",
.voltype = "performance/write-behind",
.option = "strict-O_DIRECT",
.op_version = 2,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.nfs.strict-o-direct",
.voltype = "performance/write-behind",
.option = "strict-O_DIRECT",
.op_version = 2,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.strict-write-ordering",
.voltype = "performance/write-behind",
.option = "strict-write-ordering",
.op_version = 2,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.nfs.strict-write-ordering",
.voltype = "performance/write-behind",
.option = "strict-write-ordering",
.op_version = 2,
.flags = OPT_FLAG_CLIENT_OPT
},
{ .key = "performance.lazy-open",
.voltype = "performance/open-behind",
.option = "lazy-open",
@ -970,13 +994,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
"graph of volume.",
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT
},
{ .key = "performance.nfs.write-behind",
.voltype = "performance/write-behind",
.option = "!nfsperf",
.value = "on",
.type = NO_DOC,
.op_version = 1,
.flags = OPT_FLAG_XLATOR_OPT
{ .key = "performance.nfs.write-behind",
.voltype = "performance/write-behind",
.option = "!nfsperf",
.value = "on",
.op_version = 1,
.description = "enable/disable write-behind translator in the volume",
.flags = OPT_FLAG_XLATOR_OPT
},
{ .key = "performance.nfs.read-ahead",
.voltype = "performance/read-ahead",