]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
boot/zfs: Extend zfsimpl.h and make it easier to use
authorMark Johnston <markj@FreeBSD.org>
Sat, 21 May 2022 18:22:30 +0000 (14:22 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sat, 21 May 2022 18:30:35 +0000 (14:30 -0400)
commit77649f35a7e53e3cbbd5b416e8802f70e21a99f6
treef5ad18a40c3a9a738623685a4c9c03b93a56b88f
parent58c63d5e37cb3a04355b63e853dfdc145e77cb09
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
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35278
sys/cddl/boot/zfs/zfsimpl.h