HomeFreeBSD

Fixes for SNPRINTF_BLKPTR with encrypted BP's

Description

Fixes for SNPRINTF_BLKPTR with encrypted BP's

mdb doesn't have dmu_ot[], so we need a different mechanism for its
SNPRINTF_BLKPTR() to determine if the BP is encrypted vs authenticated.

Additionally, since it already relies on BP_IS_ENCRYPTED (etc),
SNPRINTF_BLKPTR might as well figure out the "crypt_type" on its own,
rather than making the caller do so.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #7390

Details

Provenance
mahrensAuthored on Apr 6 2018, 8:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 6 2018, 8:30 PM
Parents
rG0ba106e75c6c: Fix divide-by-zero in mmp_delay_update()
Branches
Unknown
Tags
Unknown

Event Timeline