mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: skip new lvresize tests when missing new libblkid
This commit is contained in:
parent
264827cb98
commit
bf386411b8
@ -22,6 +22,13 @@ export LVM_TEST_PREFER_BRD=0
|
|||||||
|
|
||||||
aux prepare_vg 1 300
|
aux prepare_vg 1 300
|
||||||
|
|
||||||
|
# Tests require a libblkid version that shows FSLASTBLOCK
|
||||||
|
lvcreate -n $lv1 -L 100 $vg
|
||||||
|
mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
|
||||||
|
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
|
||||||
|
lvchange -an $vg
|
||||||
|
lvremove $vg/$lv1
|
||||||
|
|
||||||
# set to "skip" to avoid testing given fs and test warning result
|
# set to "skip" to avoid testing given fs and test warning result
|
||||||
# i.e. check_reiserfs=skip
|
# i.e. check_reiserfs=skip
|
||||||
check_ext2=
|
check_ext2=
|
||||||
|
@ -17,6 +17,13 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
aux prepare_vg 3 256
|
aux prepare_vg 3 256
|
||||||
|
|
||||||
|
# Tests require a libblkid version that shows FSLASTBLOCK
|
||||||
|
lvcreate -n $lv1 -L 300 $vg
|
||||||
|
mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
|
||||||
|
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
|
||||||
|
lvchange -an $vg
|
||||||
|
lvremove $vg/$lv1
|
||||||
|
|
||||||
mount_dir="mnt_lvresize_cr"
|
mount_dir="mnt_lvresize_cr"
|
||||||
mkdir -p "$mount_dir"
|
mkdir -p "$mount_dir"
|
||||||
|
|
||||||
|
@ -28,6 +28,12 @@ aux prepare_vg 3 256
|
|||||||
mount_dir="mnt_lvresize_fs"
|
mount_dir="mnt_lvresize_fs"
|
||||||
mkdir -p "$mount_dir"
|
mkdir -p "$mount_dir"
|
||||||
|
|
||||||
|
# Tests require a libblkid version that shows FSLASTBLOCK
|
||||||
|
lvcreate -n $lv1 -L 300 $vg
|
||||||
|
mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
|
||||||
|
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
|
||||||
|
lvchange -an $vg
|
||||||
|
lvremove $vg/$lv1
|
||||||
|
|
||||||
#
|
#
|
||||||
# lvextend, no fs
|
# lvextend, no fs
|
||||||
|
Loading…
Reference in New Issue
Block a user