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:
parent
ef389603dd
commit
2fbc578cfa
@ -29,9 +29,11 @@ mount "$DM_DEV_DIR/$vg/$lv1" mnt
|
|||||||
cp etc/lvm.conf mnt
|
cp etc/lvm.conf mnt
|
||||||
|
|
||||||
# Figure where the file is placed in filesystem
|
# 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
|
umount mnt
|
||||||
|
|
||||||
|
test -s frags || skip
|
||||||
|
|
||||||
# 1st. sector for filesystem
|
# 1st. sector for filesystem
|
||||||
first_extent_sector=$(get first_extent_sector "$dev1")
|
first_extent_sector=$(get first_extent_sector "$dev1")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user