1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: updates for new test

snaphost needs exclusive origin for cluster
older md5 needs 2 space char
This commit is contained in:
Zdenek Kabelac 2014-03-06 17:55:58 +01:00
parent 6b561a7a3b
commit ef1d910dee
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@ aux prepare_pvs 1
vgcreate -s 1K $vg $(cat DEVICES)
lvcreate -L1 -n $lv1 $vg
lvcreate -aey -L1 -n $lv1 $vg
# Snapshot should be large enough to handle any writes
lvcreate -L2 -s $vg/$lv1 -n $lv2

View File

@ -19,6 +19,7 @@
# Snapshot should remain unmodified
check_s_() {
rm -f debug.log
md5sum -c md5
#diff data "$DM_DEV_DIR/$vg/s"
}
@ -32,7 +33,7 @@ dd if=/dev/urandom of=data bs=1M count=1
dd if=data of=data bs=1M count=7 seek=1
echo "$(md5sum data | cut -d' ' -f1) $DM_DEV_DIR/$vg/s" >md5
lvcreate -L 8M -n o $vg
lvcreate -aey -L 8M -n o $vg
dd if=data of="$DM_DEV_DIR/$vg/o" bs=1M
lvcreate -L 8M -s -n s $vg/o