HomeFreeBSD

opensolaris code: translate INVARIANTS to DEBUG and ZFS_DEBUG
rS253996Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

opensolaris code: translate INVARIANTS to DEBUG and ZFS_DEBUG

Do this by forcing inclusion of
sys/cddl/compat/opensolaris/sys/debug_compat.h
via -include option into all source files from OpenSolaris.
Note that this -include option must always be after -include opt_global.h.

Additionally, remove forced definition of DEBUG for some modules and fix
their build without DEBUG.

Also, meaning of DEBUG was overloaded to enable WITNESS support for some
OpenSolaris (primarily ZFS) locks. Now this overloading is removed and
that use of DEBUG is replaced with a new option OPENSOLARIS_WITNESS.

MFC after: 17 days

Details

Provenance
avgAuthored on
Parents
rS253995: Fix build on arm and mips.
Branches
Unknown
Tags
Unknown