Commit d7686201 authored by Ondrej Kozina's avatar Ondrej Kozina Committed by Milan Broz

Grow fs images and alter tests accordingly.

parent 248733de
...@@ -226,7 +226,7 @@ cleanup ...@@ -226,7 +226,7 @@ cleanup
echo "# Create enterprise-class 4K drive with fs and LUKS images." echo "# Create enterprise-class 4K drive with fs and LUKS images."
# loop device here presents 512 block but images have 4k block # loop device here presents 512 block but images have 4k block
# cryptsetup should properly use 4k block on direct-io # cryptsetup should properly use 4k block on direct-io
add_device dev_size_mb=16 sector_size=4096 physblk_exp=0 num_tgts=1 opt_blks=64 add_device dev_size_mb=32 sector_size=4096 physblk_exp=0 num_tgts=1 opt_blks=64
for file in $(ls img_fs_*.img.bz2) ; do for file in $(ls img_fs_*.img.bz2) ; do
echo "Format using fs image $file." echo "Format using fs image $file."
bzip2 -d -c $file | dd of=$DEV bs=1M 2>/dev/null || fail "bad image" bzip2 -d -c $file | dd of=$DEV bs=1M 2>/dev/null || fail "bad image"
......
No preview for this file type
...@@ -320,11 +320,11 @@ $CRYPTSETUP --type luks1 luksDump $LOOPDEV1 > /dev/null || fail ...@@ -320,11 +320,11 @@ $CRYPTSETUP --type luks1 luksDump $LOOPDEV1 > /dev/null || fail
echo "[9] Test log I/Os on various underlaying block devices" echo "[9] Test log I/Os on various underlaying block devices"
prepare 8192 prepare 8192
echo $PWD2 | $CRYPTSETUP -q luksFormat $FAST_PBKDF $LOOPDEV1 || fail echo $PWD2 | $CRYPTSETUP -q luksFormat $FAST_PBKDF $LOOPDEV1 || fail
add_scsi_device sector_size=512 dev_size_mb=25 add_scsi_device sector_size=512 dev_size_mb=32
test_logging "[512 sector]" || fail test_logging "[512 sector]" || fail
add_scsi_device sector_size=4096 dev_size_mb=25 add_scsi_device sector_size=4096 dev_size_mb=32
test_logging "[4096 sector]" || fail test_logging "[4096 sector]" || fail
add_scsi_device sector_size=512 dev_size_mb=25 physblk_exp=3 add_scsi_device sector_size=512 dev_size_mb=32 physblk_exp=3
test_logging "[4096/512 sector]" || fail test_logging "[4096/512 sector]" || fail
test_logging_tmpfs || fail test_logging_tmpfs || fail
......
...@@ -324,11 +324,11 @@ $CRYPTSETUP luksDump $LOOPDEV1 > /dev/null || fail ...@@ -324,11 +324,11 @@ $CRYPTSETUP luksDump $LOOPDEV1 > /dev/null || fail
echo "[9] Test log I/Os on various underlaying block devices" echo "[9] Test log I/Os on various underlaying block devices"
prepare 8192 prepare 8192
echo $PWD2 | $CRYPTSETUP -q luksFormat $FAST_PBKDF_ARGON $LOOPDEV1 || fail echo $PWD2 | $CRYPTSETUP -q luksFormat $FAST_PBKDF_ARGON $LOOPDEV1 || fail
add_scsi_device sector_size=512 dev_size_mb=25 add_scsi_device sector_size=512 dev_size_mb=32
test_logging "[512 sector]" || fail test_logging "[512 sector]" || fail
add_scsi_device sector_size=4096 dev_size_mb=25 add_scsi_device sector_size=4096 dev_size_mb=32
test_logging "[4096 sector]" || fail test_logging "[4096 sector]" || fail
add_scsi_device sector_size=512 dev_size_mb=25 physblk_exp=3 add_scsi_device sector_size=512 dev_size_mb=32 physblk_exp=3
test_logging "[4096/512 sector]" || fail test_logging "[4096/512 sector]" || fail
test_logging_tmpfs || fail test_logging_tmpfs || fail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment