1
0
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:
Zdenek Kabelac 2013-05-31 11:01:59 +02:00
parent 31f3274ed8
commit 1c83c15963

View File

@ -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 file is part of LVM2.
#
@ -15,14 +15,14 @@
kernel_at_least 2 6 33 || skip
aux prepare_devs 2
aux prepare_pvs 2
vgcreate -c n -s 4k $vg $(cat DEVICES)
lvcreate -l 5 -n foo $vg
lvcreate -s -n snap $vg/foo -l 2 -c 4k
vgcreate -s 4k $vg $(cat DEVICES)
lvcreate -aey -l 5 -n foo $vg
lvcreate -s -n snap $vg/foo -l 3 -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
lvcreate -m 1 -n mirr $vg -l 1 --mirrorlog core
lvcreate -aey -m 1 -n mirr $vg -l 1 --mirrorlog core
lvs $vg
aux apitest percent $vg