mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: min snap chunk count is 3
This commit is contained in:
parent
31f3274ed8
commit
1c83c15963
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
|
# Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# This file is part of LVM2.
|
# This file is part of LVM2.
|
||||||
#
|
#
|
||||||
@ -15,14 +15,14 @@
|
|||||||
|
|
||||||
kernel_at_least 2 6 33 || skip
|
kernel_at_least 2 6 33 || skip
|
||||||
|
|
||||||
aux prepare_devs 2
|
aux prepare_pvs 2
|
||||||
|
|
||||||
vgcreate -c n -s 4k $vg $(cat DEVICES)
|
vgcreate -s 4k $vg $(cat DEVICES)
|
||||||
lvcreate -l 5 -n foo $vg
|
lvcreate -aey -l 5 -n foo $vg
|
||||||
lvcreate -s -n snap $vg/foo -l 2 -c 4k
|
lvcreate -s -n snap $vg/foo -l 3 -c 4k
|
||||||
lvcreate -s -n snap2 $vg/foo -l 6 -c 4k
|
lvcreate -s -n snap2 $vg/foo -l 6 -c 4k
|
||||||
dd if=/dev/urandom of="$DM_DEV_DIR/$vg/snap2" count=1 bs=1024
|
dd if=/dev/urandom of="$DM_DEV_DIR/$vg/snap2" count=1 bs=1024
|
||||||
lvcreate -m 1 -n mirr $vg -l 1 --mirrorlog core
|
lvcreate -aey -m 1 -n mirr $vg -l 1 --mirrorlog core
|
||||||
lvs $vg
|
lvs $vg
|
||||||
aux apitest percent $vg
|
aux apitest percent $vg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user