From 70b0c7b725408fc82969e15dcf67cd352b0fb68b Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Tue, 21 Oct 2014 07:57:22 +0530 Subject: USS : Display only the activated snapshots Instead of displaying all the snapshots in the uss world, it is better if we display only the activated snapshots. Change-Id: I70d3ec212b62ec15956ae3e826bc4201d8dedd17 BUG: 1155042 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/8958 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-by: Rajesh Joseph Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- tests/snapshot.rc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/snapshot.rc') diff --git a/tests/snapshot.rc b/tests/snapshot.rc index cddbb49584a..6ca276d194b 100755 --- a/tests/snapshot.rc +++ b/tests/snapshot.rc @@ -391,6 +391,12 @@ function check_if_snapd_exist() { if [ -n "$pid" ]; then echo "Y"; else echo "N"; fi } +# returns number of snapshot being displayed in ".snaps" directory +function uss_count_snap_displayed() { + local path=$1 + ls $path/.snaps | wc -l +} + case $OSTYPE in NetBSD) echo "Skip test on LVM which is not available on NetBSD" >&2 -- cgit