[sheepdog] [PATCH v7 17/18] tests/functional: new test of object reclaim for a case of continuously snapshotted VDI
Hitoshi Mitake
mitake.hitoshi at gmail.com
Sun Mar 16 14:05:27 CET 2014
Cc: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Cc: Valerio Pachera <sirio81 at gmail.com>
Cc: Alessandro Bolgia <alessandro at extensys.it>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
tests/functional/091 | 32 ++++++++++++++++++++++++++++++++
tests/functional/091.out | 26 ++++++++++++++++++++++++++
tests/functional/group | 1 +
3 files changed, 59 insertions(+)
create mode 100755 tests/functional/091
create mode 100644 tests/functional/091.out
diff --git a/tests/functional/091 b/tests/functional/091
new file mode 100755
index 0000000..bf32e71
--- /dev/null
+++ b/tests/functional/091
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Test object reclaim for continuously snapshotted and partially updated VDI
+
+. ./common
+
+for i in 0 1 2; do
+ _start_sheep $i
+done
+_wait_for_sheep 3
+_cluster_format -c 3
+
+$DOG vdi create test 16M
+cat /dev/zero | $DOG vdi write test 0 512
+_node_info
+
+$DOG vdi snapshot test
+cat /dev/zero | $DOG vdi write test $((4 * 1024 * 1024)) 512
+_node_info
+
+$DOG vdi snapshot test
+cat /dev/zero | $DOG vdi write test $((4 * 1024 * 1024 * 2)) 512
+_node_info
+
+$DOG vdi delete test -s 2
+_node_info
+
+$DOG vdi delete test -s 1
+_node_info
+
+$DOG vdi delete test
+_node_info
diff --git a/tests/functional/091.out b/tests/functional/091.out
new file mode 100644
index 0000000..e9b0cac
--- /dev/null
+++ b/tests/functional/091.out
@@ -0,0 +1,26 @@
+QA output created by 091
+using backend plain store
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 1 1 0 0 0 0
+1 1 1 0 0 0 0
+2 1 1 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 2 2 0 0 0 0
+1 2 2 0 0 0 0
+2 2 2 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 0 0
+1 3 3 0 0 0 0
+2 3 3 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 2 0
+1 3 3 0 0 2 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 2 0
+1 3 3 0 0 2 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 0 3 0 0 0 0
+1 0 3 0 0 0 0
+2 0 3 0 0 0 0
diff --git a/tests/functional/group b/tests/functional/group
index 961f893..b40c90c 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -105,3 +105,4 @@
088 auto quick cluster
089 auto quick sheepfs
090 quto quick vdi
+091 quto quick vdi
--
1.8.3.2
More information about the sheepdog
mailing list