mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
Revert "Avoid panic with recordsize > 128k, raw sending and no large_blocks"
This reverts commit 80a650b7bb. This change
inadvertently introduced a regression in ztest where one of the new ASSERTs
is triggered in dsl_scan_visitbp().
Reviewed-by: George Amanakis <gamanakis@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #12275
Closes #13799
This commit is contained in:
@@ -493,7 +493,6 @@ dmu_dump_write(dmu_send_cookie_t *dscp, dmu_object_type_t type, uint64_t object,
|
||||
(bp != NULL ? BP_GET_COMPRESS(bp) != ZIO_COMPRESS_OFF &&
|
||||
io_compressed : lsize != psize);
|
||||
if (raw || compressed) {
|
||||
ASSERT(bp != NULL);
|
||||
ASSERT(raw || dscp->dsc_featureflags &
|
||||
DMU_BACKUP_FEATURE_COMPRESSED);
|
||||
ASSERT(!BP_IS_EMBEDDED(bp));
|
||||
@@ -1018,9 +1017,6 @@ do_dump(dmu_send_cookie_t *dscp, struct send_range *range)
|
||||
if (srdp->datablksz > SPA_OLD_MAXBLOCKSIZE &&
|
||||
!(dscp->dsc_featureflags &
|
||||
DMU_BACKUP_FEATURE_LARGE_BLOCKS)) {
|
||||
if (dscp->dsc_featureflags & DMU_BACKUP_FEATURE_RAW)
|
||||
return (SET_ERROR(ENOTSUP));
|
||||
|
||||
while (srdp->datablksz > 0 && err == 0) {
|
||||
int n = MIN(srdp->datablksz,
|
||||
SPA_OLD_MAXBLOCKSIZE);
|
||||
|
||||
Reference in New Issue
Block a user