[Bug 271105] ext2fs cant mount disks with 4k native sector size

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Apr 2023 12:51:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271105

--- Comment #6 from bolvan <k@vodka.home.kg> ---
Actually it's easy to reproduce in qemu


qemu-img.exe create -f raw test.raw 1G
qemu-img.exe create -f raw test2.raw 1G

qemu-system-x86_64.exe -drive format=qcow2,file=f.qcow2 -drive
format=raw,file=test.raw,id=D24,if=none -device
nvme,drive=D24,serial=1234,physical_block_size=4096,logical_block_size=4096 
-drive format=raw,file=test2.raw,id=D25,if=none -device
nvme,drive=D25,serial=1235,physical_block_size=512,logical_block_size=512   -m
4096

f.qcow2 contains freebsd
test.raw has 4096 sector size
test2.raw has 512 sector size

mke2fs on both nvd0 and nvd1
mount first fails
mount second succeeds

-- 
You are receiving this mail because:
You are the assignee for the bug.