summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2015-10-28 12:30:34 +0530
committerRajesh Joseph <rjoseph@redhat.com>2015-11-02 22:38:05 -0800
commit1f74a3efbd0337759878ffff5cd4ee6782ddfe3f (patch)
tree8c1aeb500e30b0404081bd4d8a384abcce0122e9 /tests/snapshot.rc
parent2e56bde3ea952beabd27cdf8a3a10da563a00bcc (diff)
snapshot: Inherit snap-max-hard-limit from original volume
A snapshot should inherit snap-max-hard-limit from the original volume while being created and when being restored to, it should restore the same. Similarly a clone taken from a snapshot should inherit snap-max-hard-limit from the snapshot. Change-Id: If8e90e2ffc10e22086b803ac8e2638a16bcec968 BUG: 1275616 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/12437 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: mohammed rafi kc <rkavunga@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'tests/snapshot.rc')
-rw-r--r--tests/snapshot.rc16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 60e5b79ec76..34e9ebf16d8 100644
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -431,6 +431,22 @@ function uss_count_snap_displayed() {
ls $path/.snaps | wc -l
}
+function snap_info_volume()
+{
+ eval local cli_index=\$$1
+ local var=$2
+ local vol=$3
+ $cli_index snapshot info volume $vol | grep "^$var" | sed 's/.*: //'
+}
+
+function snap_config_volume()
+{
+ eval local cli_index=\$$1
+ local var=$2
+ local vol=$3
+ $cli_index snapshot config $vol| grep "^$var" | sed 's/.*: //'
+}
+
#return specific fields of xml output
function get-cmd-field-xml()
{