Page MenuHomeFreeBSD

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

Authored by markj on May 20 2022, 11:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 9:21 PM
Unknown Object (File)
Thu, Apr 25, 5:03 AM
Unknown Object (File)
Mar 31 2024, 7:01 AM
Unknown Object (File)
Mar 4 2024, 7:27 AM
Unknown Object (File)
Feb 7 2024, 11:56 PM
Unknown Object (File)
Jan 14 2024, 8:59 AM
Unknown Object (File)
Jan 8 2024, 4:11 AM
Unknown Object (File)
Dec 22 2023, 10:22 PM
Subscribers

Details

Summary

Some makefs(8) patches make use of zfsimpl.h (not zfsimpl.c though) to
provide definitions for various on-disk structure. 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().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/cddl/boot/zfs/zfsimpl.h
560–561

Could use some verbose message here:)

1913–1914

we are actually not using this structure at all, I think we can just drop it from here.

2062

extern maybe?

markj marked 3 inline comments as done.

Address review feedback

This revision is now accepted and ready to land.May 21 2022, 6:00 PM