xlator: NULL terminate volume_options struct

Problem:
volume_options struct for open-behind and quick-read xlators
were not NULL terminated.

Fix:
Make them NULL terminated.

Change-Id: I2615a1f15c6e5674030a219a99ddf91596bf346b
BUG: 965995
Signed-off-by: Santosh Kumar Pradhan <spradhan@redhat.com>
Reviewed-on: http://review.gluster.org/5064
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Santosh Kumar Pradhan 2013-05-22 15:26:04 +05:30 committed by Vijay Bellur
parent 16b5ec6712
commit 4df7a3c488
2 changed files with 7 additions and 5 deletions

View File

@ -922,15 +922,16 @@ struct volume_options options[] = {
{ .key = {"use-anonymous-fd"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "yes",
.description = "For read operations, use anonymous FD when "
"original FD is open-behind and not yet opened in the backend.",
.description = "For read operations, use anonymous FD when "
"original FD is open-behind and not yet opened in the backend.",
},
{ .key = {"lazy-open"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "yes",
.description = "Perform open in the backend only when a necessary "
"FOP arrives (e.g writev on the FD, unlink of the file). When option "
"is disabled, perform backend open right after unwinding open().",
.description = "Perform open in the backend only when a necessary "
"FOP arrives (e.g writev on the FD, unlink of the file). When option "
"is disabled, perform backend open right after unwinding open().",
},
{ .key = {NULL} }
};

View File

@ -1143,4 +1143,5 @@ struct volume_options options[] = {
.max = 1 * GF_UNIT_KB * 1000,
.default_value = "64KB",
},
{ .key = {NULL} }
};