3
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
5
# This copyrighted material is made available to anyone wishing to use,
6
# modify, copy, or redistribute it subject to the terms and conditions
7
# of the GNU General Public License v.2.
9
# You should have received a copy of the GNU General Public License
10
# along with this program; if not, write to the Free Software Foundation,
11
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
check_lv_field_modules_()
21
check lv_field $vg/$d modules $mod
29
aux have_thin 1 0 0 || skip
33
vgcreate $vg -s 64K $(cat DEVICES)
35
lvcreate -L10M -V10M -T $vg/pool --name $lv1
36
mkfs.ext4 $DM_DEV_DIR/$vg/$lv1
37
# create thin snapshot of thin LV
39
# check snapshot filesystem was properly frozen before snapping
40
fsck -p $DM_DEV_DIR/$vg/lvol0
41
lvcreate -s $vg/$lv1 --name $lv2
42
lvcreate -s $vg/$lv1 --name $vg/$lv3
43
lvcreate --type snapshot $vg/$lv1
44
lvcreate --type snapshot $vg/$lv1 --name $lv4
45
lvcreate --type snapshot $vg/$lv1 --name $vg/$lv5
47
# create old-style snapshot
48
lvcreate -s -L10M --name oldsnap1 $vg/$lv2
49
lvcreate -s -L10M --name oldsnap2 $vg/$lv2
51
# thin snap of snap of snap...
52
lvcreate -s --name sn1 $vg/$lv2
53
lvcreate -s --name sn2 $vg/sn1
54
lvcreate -s --name sn3 $vg/sn2
55
lvcreate -s --name sn4 $vg/sn3