summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-06-16 20:38:42 +0530
committerKaushal M <kaushal@redhat.com>2014-06-17 02:37:32 -0700
commit53d932b490c505901ddd1a0133e8125ad6dfd24c (patch)
treebe82f373dfcf749eee356bf076b008c162522dc8 /tests/volume.rc
parent84d370774cdbc6847f4f2f64a7f47abb27a7471b (diff)
mgmt/glusterd: save the snapd port in volinfo after starting snapd
Change-Id: I9266bbf4f67a2135f9a81b32fe88620be11af6ea BUG: 1109889 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/8084 Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index db93ce7a2fe..5b5c2147392 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -84,6 +84,14 @@ function cleanup_mount_statedump {
cleanup_statedump $(get_mount_process_pid $vol)
}
+function snap_client_connected_status {
+ local vol=$1
+ local fpath=$(generate_mount_statedump $vol)
+ up=$(grep -A2 xlator.protocol.client.$vol-snapd-client.priv $fpath | tail -1 | cut -f 2 -d'=')
+ rm -f $fpath
+ echo "$up"
+}
+
function _afr_child_up_status {
local vol=$1
#brick_id is (brick-num in volume info - 1)