summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-1113975.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-1113975.t')
-rw-r--r--tests/bugs/bug-1113975.t38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs/bug-1113975.t b/tests/bugs/bug-1113975.t
new file mode 100644
index 00000000000..4b786d1502f
--- /dev/null
+++ b/tests/bugs/bug-1113975.t
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+. $(dirname $0)/../snapshot.rc
+
+cleanup;
+
+TEST init_n_bricks 3;
+TEST setup_lvm 3;
+
+TEST glusterd;
+
+TEST pidof glusterd;
+
+TEST $CLI volume create $V0 $H0:$L1 $H0:$L2 $H0:$L3;
+
+TEST $CLI volume start $V0;
+
+TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0;
+
+for i in {1..10} ; do echo "file" > $M0/file$i ; done
+
+TEST $CLI snapshot create snap1 $V0;
+
+for i in {11..20} ; do echo "file" > $M0/file$i ; done
+
+TEST $CLI snapshot create snap2 $V0;
+
+TEST $CLI volume stop $V0
+
+TEST $CLI snapshot restore snap1;
+
+TEST $CLI snapshot restore snap2;
+
+TEST $CLI volume start $V0
+
+cleanup ;