[lvm-devel] dev-mornfall-activate - tests: snapshot needs 3 chunks
Petr Rockai
mornfall at fedoraproject.org
Tue Jun 4 19:27:50 UTC 2013
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=09cc5f65dbe34027c91011907e25ea4c21edfd13
Commit: 09cc5f65dbe34027c91011907e25ea4c21edfd13
Parent: 6f9366696c76863662e6cb12de467b5f748c8495
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Thu May 30 17:55:44 2013 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu May 30 17:56:47 2013 +0200
tests: snapshot needs 3 chunks
---
test/shell/lvcreate-small-snap.sh | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/test/shell/lvcreate-small-snap.sh b/test/shell/lvcreate-small-snap.sh
index 9b43868..e0e6d1a 100644
--- a/test/shell/lvcreate-small-snap.sh
+++ b/test/shell/lvcreate-small-snap.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@@ -11,14 +11,15 @@
. lib/test
-aux prepare_pvs 3
+aux prepare_pvs
-vgcreate -c n -s 1k $vg $(cat DEVICES)
+vgcreate -s 1k $vg $(cat DEVICES)
-lvcreate -n one -l 10 $vg
-lvcreate -s -l 8 -n snapA $vg/one
-lvcreate -s -c 4k -l 8 -n snapX1 $vg/one
-lvcreate -s -c 8k -l 16 -n snapX2 $vg/one
+# 3 Chunks
+lvcreate -aey -n one -l 10 $vg
+lvcreate -s -l 12 -n snapA $vg/one
+lvcreate -s -c 4k -l 12 -n snapX1 $vg/one
+lvcreate -s -c 8k -l 24 -n snapX2 $vg/one
# Check that snapshots that are too small are caught with correct error.
not lvcreate -s -c 8k -l 8 -n snapX3 $vg/one 2>&1 | tee lvcreate.out
More information about the lvm-devel
mailing list