Skip to content

Commit

Permalink
debugging: printout failing zio
Browse files Browse the repository at this point in the history
Signed-off-by: George Amanakis <[email protected]>
  • Loading branch information
gamanakis committed Feb 22, 2021
1 parent 0dd3d84 commit d785104
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions module/zfs/dmu_objset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,7 @@ dmu_objset_sync(objset_t *os, zio_t *pio, dmu_tx_t *tx)
if (DMU_USERUSED_DNODE(os) &&
DMU_USERUSED_DNODE(os)->dn_type != DMU_OT_NONE) {
DMU_USERUSED_DNODE(os)->dn_zio = zio;
cmn_err(CE_NOTE, "dn sync zio: %llx", zio);
dnode_sync(DMU_USERUSED_DNODE(os), tx);
DMU_GROUPUSED_DNODE(os)->dn_zio = zio;
dnode_sync(DMU_GROUPUSED_DNODE(os), tx);
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/dsl_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ spa_do_crypt_objset_mac_abd(boolean_t generate, spa_t *spa, uint64_t dsobj,
/* look up the key from the spa's keystore */
ret = spa_keystore_lookup_key(spa, dsobj, FTAG, &dck);
if (ret != 0) {
cmn_err(CE_NOTE, "lookup failed");
cmn_err(CE_NOTE, "lookup failed, dsobj: %llx", dsobj);
goto error;
}

Expand Down
1 change: 1 addition & 0 deletions module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -4124,6 +4124,7 @@ zio_encrypt(zio_t *zio)
ASSERT0(DMU_OT_IS_ENCRYPTED(ot));
ASSERT3U(BP_GET_COMPRESS(bp), ==, ZIO_COMPRESS_OFF);
BP_SET_CRYPT(bp, B_TRUE);
cmn_err(CE_NOTE, "zio: %llx", zio);
VERIFY0(spa_do_crypt_objset_mac_abd(B_TRUE, spa, dsobj,
zio->io_abd, psize, BP_SHOULD_BYTESWAP(bp)));
return (zio);
Expand Down

0 comments on commit d785104

Please sign in to comment.