opnsense-src/sys/fs/ext2fs
Fedor Uporov 50be18cc77 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
2023-05-21 08:17:47 +03:00
..
ext2_acl.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_acl.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_alloc.c Fix block bitmap end position computation 2023-01-29 11:11:02 +03:00
ext2_balloc.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
ext2_bmap.c ext2fs: remove remnants of the UFS snapshot code 2022-01-31 04:37:16 +02:00
ext2_csum.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_dinode.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_dir.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_extattr.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_extattr.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_extents.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_extents.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_extern.h In ext2fs, BA_CLRBUF is used in ext2_balloc() not UFS_BALLOC(). 2020-12-08 00:49:31 +00:00
ext2_hash.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_htree.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2_inode.c Move mnt_maxsymlinklen into appropriate fs mount data structures 2021-05-22 15:16:09 +03:00
ext2_inode_cnv.c Improve extents verification logic 2021-12-30 09:14:45 +03:00
ext2_lookup.c Fix compilation issue, when DTRACE is not defined 2023-03-20 23:06:57 +03:00
ext2_mount.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_subr.c Add BE architectures support. 2020-05-17 14:52:54 +00:00
ext2_vfsops.c ext2fs: Add large sectorsize disks support 2023-05-21 08:17:47 +03:00
ext2_vnops.c Do not panic in case of corrupted directory 2023-03-18 09:16:24 +03:00
ext2fs.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fs.h ext2fs: Add large sectorsize disks support 2023-05-21 08:17:47 +03:00
htree.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
inode.h Make inode extra time fields updating logic more closer to linux. 2021-05-07 10:46:55 +03:00