summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2017-08-31 15:13:26 +0530
committerAmar Tumballi <amarts@redhat.com>2017-11-17 07:24:06 +0000
commit0447eb4b6df3bac8b8f43a58ded6083c89866957 (patch)
treedc33d1425eee288a0f583438e1d2d4ead95caf7c /xlators
parent0161b393c61608cb4ecdf20daff3a1490b3e8ff9 (diff)
features/changelog: xlators opts improvement for GD2
Updates: #302 Change-Id: Ibbf0f99d4b81a5e9a5ccee1889214b74f083a7db Signed-off-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/changelog/src/changelog.c43
1 files changed, 34 insertions, 9 deletions
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
index 3b8389f1da1..d6d8fa01de0 100644
--- a/xlators/features/changelog/src/changelog.c
+++ b/xlators/features/changelog/src/changelog.c
@@ -2974,39 +2974,58 @@ struct volume_options options[] = {
{.key = {"changelog"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "off",
- .description = "enable/disable change-logging"
+ .description = "enable/disable change-logging",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal", "georep", "glusterfind"}
},
{.key = {"changelog-brick"},
.type = GF_OPTION_TYPE_PATH,
.description = "brick path to generate unique socket file name."
- " should be the export directory of the volume strictly."
+ " should be the export directory of the volume strictly.",
+ .op_version = {3},
+ .tags = {"journal"}
},
{.key = {"changelog-dir"},
.type = GF_OPTION_TYPE_PATH,
- .description = "directory for the changelog files"
+ .description = "directory for the changelog files",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal", "georep", "glusterfind"}
},
{.key = {"op-mode"},
.type = GF_OPTION_TYPE_STR,
.default_value = "realtime",
.value = {"realtime"},
- .description = "operation mode - futuristic operation modes"
+ .description = "operation mode - futuristic operation modes",
+ .op_version = {3},
+ .tags = {"journal"}
},
{.key = {"encoding"},
.type = GF_OPTION_TYPE_STR,
.default_value = "ascii",
.value = {"binary", "ascii"},
- .description = "encoding type for changelogs"
+ .description = "encoding type for changelogs",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal"}
},
{.key = {"rollover-time"},
.default_value = "15",
.type = GF_OPTION_TYPE_TIME,
- .description = "time to switch to a new changelog file (in seconds)"
+ .description = "time to switch to a new changelog file (in seconds)",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal", "georep", "glusterfind"}
},
{.key = {"fsync-interval"},
.type = GF_OPTION_TYPE_TIME,
.default_value = "5",
.description = "do not open CHANGELOG file with O_SYNC mode."
- " instead perform fsync() at specified intervals"
+ " instead perform fsync() at specified intervals",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal"}
},
{ .key = {"changelog-barrier-timeout"},
.type = GF_OPTION_TYPE_TIME,
@@ -3014,12 +3033,18 @@ struct volume_options options[] = {
.description = "After 'timeout' seconds since the time 'barrier' "
"option was set to \"on\", unlink/rmdir/rename "
"operations are no longer blocked and previously "
- "blocked fops are allowed to go through"
+ "blocked fops are allowed to go through",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal"}
},
{.key = {"capture-del-path"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "off",
- .description = "enable/disable capturing paths of deleted entries"
+ .description = "enable/disable capturing paths of deleted entries",
+ .op_version = {3},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"journal", "glusterfind"}
},
{.key = {NULL}
},