1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: check for blkid

When libblkid is not present (older systems) we can't use new -fs tests at
all so skip these tests.
This commit is contained in:
Zdenek Kabelac 2023-10-15 14:43:13 +02:00
parent 63885da5b9
commit d5e58768aa

View File

@ -15,11 +15,11 @@ SKIP_WITH_LVMPOLLD=1
. lib/inittest
aux prepare_vg 2 100
which mkfs.ext4 || skip
which resize2fs || skip
aux prepare_vg 2 100
#
# Blkid is not able to detected 'running' filesystem after resize
# freeeing and unfreezing stores fs metadata on disk
@ -81,6 +81,9 @@ check lv_field $vg/$lv lv_size "60.00m"
lvremove -f $vg
# Without blkid being linked - no more tests
test "1" = "$(lvm lvmconfig --typeconfig default --valuesonly allocation/use_blkid_wiping)" || exit 0
###################
#