diff options
author | karthik-us <ksubrahm@redhat.com> | 2017-08-31 16:00:53 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-11-27 10:58:42 +0000 |
commit | 8a478e2280a6102caa189cf3b1645e767a305d48 (patch) | |
tree | 6357178a774efed14f9c583af56c7f548915d614 /xlators/features/read-only/src/read-only.c | |
parent | 7df8ba088c68e10905b613de95f9f6df40d14825 (diff) | |
download | glusterfs-8a478e2280a6102caa189cf3b1645e767a305d48.tar.gz glusterfs-8a478e2280a6102caa189cf3b1645e767a305d48.tar.xz glusterfs-8a478e2280a6102caa189cf3b1645e767a305d48.zip |
features/read-only: Redefine the options for read-only and worm
With https://review.gluster.org/18059 introducing new fields into the
volume_option structure, this change takes care of the changes required
at the read-only and worm side.
Updates #302
Change-Id: Ie9d38eed6739a8ef229c462448532354e275af7c
Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'xlators/features/read-only/src/read-only.c')
-rw-r--r-- | xlators/features/read-only/src/read-only.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/read-only/src/read-only.c b/xlators/features/read-only/src/read-only.c index aae7d0c598..d72b2c8fd2 100644 --- a/xlators/features/read-only/src/read-only.c +++ b/xlators/features/read-only/src/read-only.c @@ -125,6 +125,9 @@ struct volume_options options[] = { { .key = {"read-only"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "off", + /*.validate_fn = validate_boolean,*/ + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE, .description = "When \"on\", makes a volume read-only. It is turned " "\"off\" by default." }, |