]> granicus.if.org Git - zfs/commit
Fixes for SNPRINTF_BLKPTR with encrypted BP's
authorMatthew Ahrens <mahrens@delphix.com>
Fri, 6 Apr 2018 20:30:26 +0000 (13:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Apr 2018 20:30:26 +0000 (13:30 -0700)
commit5c27ec10889d3d8f12d59fb7e5068ed2d8697c85
tree299ac1b7654029e6c3281baf560a1fcde4f60751
parent0ba106e75c6cda806cb5d2003b918e658f2ff86c
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
include/sys/dmu.h
include/sys/spa.h
module/zfs/spa_misc.c