summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2023-05-10 11:45:50 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2023-05-10 16:19:46 +0200
commitbc28082b990bf752a2ce6ffa13aff9452c655ab8 (patch)
tree37ca11d48049143f4e1309d72e623ef46185585b
parentd418fc14f48ba8feb3f5c561f5626a673aef4863 (diff)
downloadlvm2-bc28082b990bf752a2ce6ffa13aff9452c655ab8.tar.gz
tests: skip this testing without newer blkid
Testing xfs --fs functionality needs new blkid.
-rw-r--r--test/shell/lvresize-xfs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/shell/lvresize-xfs.sh b/test/shell/lvresize-xfs.sh
index 0a3b89012..7f3193941 100644
--- a/test/shell/lvresize-xfs.sh
+++ b/test/shell/lvresize-xfs.sh
@@ -45,6 +45,11 @@ mkdir -p "$mount_dir_space"
lvcreate -n $lv -L 300M $vg
mkfs.xfs "$DM_DEV_DIR/$vg/$lv"
mount "$DM_DEV_DIR/$vg/$lv" "$mount_dir"
+
+# --fs tests require a libblkid version that shows FSLASTBLOCK
+# so exit 0 test here, if the feature is not present
+blkid -p "$DM_DEV_DIR/$vg/$lv" | grep FSLASTBLOCK || skip
+
df --output=size "$mount_dir" |tee df1
dd if=/dev/zero of="$mount_dir/zeros1" bs=1M count=10 oflag=direct
lvextend -L+20M $vg/$lv