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

tests: start to use 4k mkfs

While newer system can detect need for 4K mkfs, on older test machines
running test suite over 4k is reporting problems.
Some more generic solution is needed thought.
This commit is contained in:
Zdenek Kabelac 2018-05-12 23:22:20 +02:00
parent ca87674ea4
commit 9640320aea
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ MKFS=mkfs.ext2
which $MKFS || skip
which fsck || skip
MKFS="$MKFS -b4096"
#
# Main
#

View File

@ -23,7 +23,7 @@ lvdev_() {
test_snapshot_mount() {
lvcreate -aey -L4M -n $lv1 $vg "$dev1"
mkfs.ext3 "$(lvdev_ $vg $lv1)"
mkfs.ext3 -b4096 "$(lvdev_ $vg $lv1)"
mkdir test_mnt
mount "$(lvdev_ $vg $lv1)" test_mnt
lvcreate -L4M -n $lv2 -s $vg/$lv1