diff options
author | Paul Dagnelie <[email protected]> | 2021-12-07 10:27:59 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-07 11:27:59 -0700 |
commit | 376027331d7edaf0bb7bd146f2f087108b7eeac5 (patch) | |
tree | ace70183e6a03014dde16111990bc71affdf0a04 /module/zfs/arc.c | |
parent | b6fc42b5e1ae6fbbb62b108eea626371c68e6ea5 (diff) |
ZFS send/recv with ashift 9->12 leads to data corruption
Improve the ability of zfs send to determine if a block is compressed
or not by using information contained in the blkptr.
Reviewed-by: Rich Ercolani <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes #12770
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 5f086ea9f..5427f2a71 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -2070,7 +2070,6 @@ arc_buf_fill(arc_buf_t *buf, spa_t *spa, const zbookmark_phys_t *zb, } else { ASSERT(hdr_compressed); ASSERT(!compressed); - ASSERT3U(HDR_GET_LSIZE(hdr), !=, HDR_GET_PSIZE(hdr)); /* * If the buf is sharing its data with the hdr, unlink it and |