HomeFreeBSD

boot/zfs: Extend zfsimpl.h and make it easier to use

Description

boot/zfs: Extend zfsimpl.h and make it easier to use

Some makefs(8) patches make use of zfsimpl.h (not zfsimpl.c though) to
provide definitions for various on-disk structures. Most of this diff
simply adds new definitions that are useful.

Also reduce dependencies of the header:

  • remove an unused list_node_t field to drop the sys/list.h dependency
  • replace CTASSERT with _Static_assert

And fix the declaration of decode_embedded_bp_compressed().

No functional change intended.

Reviewed by: tsoome
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 77649f35a7e53e3cbbd5b416e8802f70e21a99f6)

Details

Provenance
markjAuthored on May 21 2022, 6:22 PM
Parents
rG2b005e89681b: Exclude DEBUG_VFS_LOCKS from non-debug kernel configs
Branches
Unknown
Tags
Unknown