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

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

--- Comment #8 from Fedor Uporov <fsu@FreeBSD.org> ---
Hope, I am understand correctly, where EINVAL come from, but need to be sure,
that qemu and hw nvme issues are identical.

Could you please download the attached file.
And do next steps:

% md5sum ./ext2_vfsops.c
1f7a613c27331abf391cb4ab6b99f434  ./ext2_vfsops.c
% cp /usr/src/sys/fs/ext2fs/ext2_vfsops.c cp
/usr/src/sys/fs/ext2fs/ext2_vfsops.c_bkp
% cp ./ext2_vfsops.c /usr/src/sys/fs/ext2fs/
% cd /usr/src/sys/modules/ext2fs
% make clean ; make
% find / -name ext2fs.ko
# The ext2fs.ko in the /usr/obj directory should be right module
% kldload /usr/obj/path/to/ext2fs.ko

Try to mount nvme drive and do dmesg, if everything is right, you should see
"==== ext2_mount(+)"
Please send me everything below this line

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