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

tests: filefrag needs to support -e

Skip on systems with 'too old' filefrag without -e support
This commit is contained in:
Zdenek Kabelac 2020-08-29 15:33:57 +02:00
parent ef389603dd
commit 2fbc578cfa

View File

@ -29,9 +29,11 @@ mount "$DM_DEV_DIR/$vg/$lv1" mnt
cp etc/lvm.conf mnt
# Figure where the file is placed in filesystem
filefrag -e mnt/lvm.conf | tee frags
filefrag -e mnt/lvm.conf | tee frags || rm -f frags
umount mnt
test -s frags || skip
# 1st. sector for filesystem
first_extent_sector=$(get first_extent_sector "$dev1")