From 859cdebc2d2b425fd76f46d598ad59933396b279 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: 1170548 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 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/9242 Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Raghavendra Bhat --- tests/snapshot.rc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/snapshot.rc') diff --git a/tests/snapshot.rc b/tests/snapshot.rc index 16549ec249f..175344ef5f7 100755 --- a/tests/snapshot.rc +++ b/tests/snapshot.rc @@ -394,3 +394,19 @@ function check_if_snapd_exist() { pid=$(ps aux | grep "snapd" | grep -v grep | awk '{print $2}') 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 + SKIP_TESTS + exit 0 + ;; +*) + ;; +esac -- cgit