Fix ext4 image to work without CONFIG_LBDAF.

This commit is contained in:
Milan Broz
2018-11-05 12:00:01 +01:00
parent 517b5da67a
commit 16309544ac
2 changed files with 5 additions and 1 deletions

View File

@@ -79,7 +79,11 @@ run_all_in_fs() {
echo "Run tests in $file put on top block device."
xz -d -c $file | dd of=$DEV bs=1M 2>/dev/null || fail "bad image"
[ ! -d $MNT_DIR ] && mkdir $MNT_DIR
mount $DEV $MNT_DIR || skip "Mounting image $file failed."
mount $DEV $MNT_DIR
if [ $? -ne 0 ]; then
echo "Mounting image $file failed, skipped."
continue;
fi
rm -rf $MNT_DIR/* 2>/dev/null
local tfile=$MNT_DIR/bwunit_tstfile
falloc $DEVSIZEMB $tfile || fail "enospc?"

Binary file not shown.