summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-06-09 18:33:21 +0530
committerKaushal M <kaushal@redhat.com>2014-06-12 01:56:01 -0700
commit604ba9abf377ff56bb671478386d4ab977fdcd57 (patch)
tree43cfc3b732b1b9d74fc3dfdb747e13e8af2bd441 /xlators/mgmt
parentd240958fb36e652a2b910fe79414fb8b934e6158 (diff)
mgmt/glusterd: provide interface for configuring the entry point to snapshots
Change-Id: Ibfd0e43db8e5f3f0f2ab6ec6bed88f71397c0bf4 BUG: 1107531 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/8025 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index f94c5bca40c..4421e4ddbf7 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -1097,13 +1097,21 @@ struct volopt_map_entry glusterd_volopt_map[] = {
{ .key = "features.uss",
.voltype = "features/snapview-server",
- .op_version = 4,
- .value = "uss",
+ .op_version = GD_OP_VERSION_3_6_0,
+ .value = "off",
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT,
.description = "Enable/Disable User Servicable Snapshots on the "
"volume."
},
+ { .key = "features.snapshot-directory",
+ .voltype = "features/snapview-client",
+ .op_version = GD_OP_VERSION_3_6_0,
+ .value = ".snaps",
+ .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT,
+ .description = "Entry point directory for entering snapshot world"
+ },
+
#ifdef HAVE_LIB_Z
/* Compressor-decompressor xlator options
* defaults used from xlator/features/compress/src/cdc.h