Home | History | Annotate | Download | only in libsa
History log of /src/sys/lib/libsa/ffs_bswap.c
RevisionDateAuthorComments
 1.1  27-May-2021  mrg branches: 1.1.2; 1.1.6;
add bi-endian support to the libsa ufs reader and enable it in efiboot.

ffs frontends to "ufs.c" now also define ufs_dinode_swap, ufs_indp_swap,
and FS_MAGIC (moved from ufs.c #if segments.) these are used to call
the right (32/64 bit) ffsv1/v2 version.

ufs.c 'struct file' gains f_swapped member. accessors for d_magic,
d_reclen, and d_ino are introduced (they need to be swapped.) sfter
reading an inode from disk, read_inode() may call ufs_dinode_swap().
indirect block number and caches may be swapped.

error handling in ffs_find_superblock() is cleaned up. (size is slightly
reduced on some ports with this part.)

defaults for new defines added to ufs.c. (XXX: we build ufs.c but i think
all the consumers don't use it, and we can stop building it.)

LFS support is not included.

add a cut-down copy of ffs_bswap.c from the kernel.

also enable bi-endian disklabel support in efiboot.

most ports build and sizes compared for platforms that don't enable this
code and all but one saw reduced code size. booted several platforms with
new boot code.
 1.1.6.2  17-Jun-2021  thorpej Sync w/ HEAD.
 1.1.6.1  27-May-2021  thorpej file ffs_bswap.c was added on branch thorpej-i2c-spi-conf on 2021-06-17 04:46:34 +0000
 1.1.2.2  31-May-2021  cjep sync with head
 1.1.2.1  27-May-2021  cjep file ffs_bswap.c was added on branch cjep_staticlib_x on 2021-05-31 22:15:21 +0000

RSS XML Feed