Skip to content

Commit 3ba91d6

Browse files
committed
Don't panic on unencrypted block in encrypted dataset.
While 763ca47 closes the situation of block cloning creating unencrypted records in encrypted datasets, existing data still causes panic on read. Setting zfs_recover bypasses this but at the cost of potentially ignoring more serious issues. Signed-off-by: Chris Peredun <[email protected]>
1 parent 9b1677f commit 3ba91d6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

module/zfs/dbuf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,8 +1634,6 @@ dbuf_read_impl(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags,
16341634
*/
16351635
if (db->db_objset->os_encrypted && !BP_USES_CRYPT(bpp)) {
16361636
spa_log_error(db->db_objset->os_spa, &zb, &bpp->blk_birth);
1637-
zfs_panic_recover("unencrypted block in encrypted "
1638-
"object set %llu", dmu_objset_id(db->db_objset));
16391637
err = SET_ERROR(EIO);
16401638
goto early_unlock;
16411639
}

module/zfs/dmu_send.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,6 @@ send_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
11241124
if (sta->os->os_encrypted &&
11251125
!BP_IS_HOLE(bp) && !BP_USES_CRYPT(bp)) {
11261126
spa_log_error(spa, zb, &bp->blk_birth);
1127-
zfs_panic_recover("unencrypted block in encrypted "
1128-
"object set %llu", dmu_objset_id(sta->os));
11291127
return (SET_ERROR(EIO));
11301128
}
11311129

0 commit comments

Comments
 (0)