diff options
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 8 |
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) |