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

tests: used -n for fsck

This commit is contained in:
Zdenek Kabelac 2013-11-11 17:19:26 +01:00
parent 3716e95354
commit 803f8ca714
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ mkfs.ext4 $DM_DEV_DIR/$vg/$lv1
# create thin snapshot of thin LV
lvcreate -K -s $vg/$lv1 --name snap
# check snapshot filesystem was properly frozen before snapping
fsck -p $DM_DEV_DIR/$vg/snap
fsck -n $DM_DEV_DIR/$vg/snap
lvcreate -K -s $vg/$lv1 --name $lv2
lvcreate -K -s $vg/$lv1 --name $vg/$lv3
lvcreate --type snapshot $vg/$lv1
@ -59,6 +59,6 @@ lvremove -ff $vg
lvcreate -L10M --zero n -T $vg/pool -V10M --name $lv1
mkfs.ext4 $DM_DEV_DIR/$vg/$lv1
lvcreate -K -s $vg/$lv1 --name snap
fsck -p $DM_DEV_DIR/$vg/snap
fsck -n $DM_DEV_DIR/$vg/snap
vgremove -ff $vg

View File

@ -138,7 +138,7 @@ check vg_field $vg lv_count 0
lvcreate -L10M -V10M -T $vg/pool --name lv1
mkfs.ext4 $DM_DEV_DIR/$vg/lv1
lvcreate -K -s $vg/lv1 --name snap_lv1
fsck -p $DM_DEV_DIR/$vg/snap_lv1
fsck -n $DM_DEV_DIR/$vg/snap_lv1
lvcreate -s $vg/lv1 --name lv2
lvcreate -s $vg/lv1 --name $vg/lv3
lvcreate --type snapshot $vg/lv1 --name lv6