summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2016-01-21 14:48:34 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-03-08 05:58:22 -0800
commit05d3d95afa62ef3271f0fe3c7272e1e19638c448 (patch)
treebf0407081d3eaba177e1eaee1d1129a565819955 /tests/volume.rc
parent4318354aac650c18b4047142e43f3d4cff4310a7 (diff)
glusterd: volume get should pick options from priv->opts too
As of now volume get was not looking for all the global options maintained in option dictionary in glusterd_conf_t. This patch includes the same. Change-Id: Ib05259a2dcacc4a712cae4217fe4a6553b61da56 BUG: 1300596 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/13272 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Gaurav Kumar Garg <ggarg@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 3cfe7b3309b..69f701a93ec 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -6,6 +6,13 @@ function volinfo_field()
$CLI volume info $vol | grep "^$field: " | sed 's/.*: //';
}
+function volume_get_field()
+{
+ local vol=$1
+ local field=$2
+ $CLI volume get $vol $field | tail -1 | awk '{print $2}'
+}
+
function brick_count()
{