HomeFreeBSD

ext2fs: Add large sectorsize disks support

Description

ext2fs: Add large sectorsize disks support

The ext2fs does not support disks with sectorsize more 512 bytes.
The main issue is in reading/writing superblock, which is not aligned
with 4k value. Reimplement the superblock reading logic to make it
indifferent to disk logical sector size. The logical sector size
more then page size is not supported, like it is doing on Linux side.

PR: 271105
Reported by: k(at)vodka.home.kg
Reviewed by: pfg
MFC after: 2 week
Differential Revision: https://reviews.freebsd.org/D40047

Details

Provenance
fsuAuthored on May 8 2023, 4:14 PM
Reviewer
pfg
Differential Revision
D40047: ext2fs: Add large sectorsize disks support
Parents
rG525dd4acaacc: LinuxKPI: implement pci_rescan_bus()
Branches
Unknown
Tags
Unknown