From 82b24d64b9dc89672e6a298648f0e3959b62b1c0 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 18 Sep 2014 17:12:33 +0530 Subject: snapview-server: register a callback with glusterd to get notifications * As of now snapview-server is polling (sending rpc requests to glusterd) to get the latest list of snapshots at some regular time intervals (non configurable). Instead of that register a callback with glusterd so that glusterd sends notifications to snapd whenever a snapshot is created/deleted and snapview-server can configure itself. rebase of the patch http://review.gluster.org/#/c/8150/ Change-Id: Iee2582b1a823d50c79233a41cf2106f458b40691 BUG: 1143961 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/8767 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/basic/uss.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/basic') diff --git a/tests/basic/uss.t b/tests/basic/uss.t index 8c6a8982eea..e59006d1cd8 100644 --- a/tests/basic/uss.t +++ b/tests/basic/uss.t @@ -243,4 +243,20 @@ TEST fd_close $fd1; TEST fd_close $fd2; TEST fd_close $fd3; +#test 131 +TEST $CLI snapshot create snap5 $V0 +TEST ls $M0/.history; + +function count_snaps +{ + local mount_point=$1; + local num_snaps; + + num_snaps=$(ls $mount_point/.history | wc -l); + + echo $num_snaps; +} + +EXPECT_WITHIN 30 "5" count_snaps $M0; + cleanup; -- cgit