add mdadm test

This commit is contained in:
Tobias Powalowski 2024-07-11 22:23:30 +02:00
parent 04803faf53
commit f7443b1257
2 changed files with 2 additions and 5 deletions

View file

@ -93,18 +93,16 @@ _result license-error.txt
_run_test "filesystems"
for i in bcachefs btrfs ext4 swap vfat xfs; do
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
sync
if [[ "${i}" == "swap" ]]; then
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
sync
else
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
sync
mount -o loop -t "${i}" /test.img /mnt &>"${_NO_LOG}" || echo "Mount error: ${i}" >> filesystems-error.log
mount -o loop /test.img /mnt &>"${_NO_LOG}" || echo "Mount error: ${i}" >> filesystems-error.log
umount /mnt || echo "Unmount error: ${i}" >> filesystems-error.log
fi
done
_result filesytems-error.log
_result filesystems-error.log
_run_test "blockdevices"
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
sync

View file

@ -274,7 +274,6 @@ _clean_disk() {
wipefs -a -f "${1}" &>"${_NO_LOG}"
# really clear everything MBR/GPT at the beginning of the device!
dd if=/dev/zero of="${1}" bs=1M count=10 &>"${_NO_LOG}"
sync
}
# Disable swap and all mounted partitions for the destination system. Unmount