mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
Fix dynamic gang block headers on raidz and mirror devices
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com> Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Closes #17587
This commit is contained in:
committed by
Brian Behlendorf
parent
8ecf044d62
commit
31c4fa93bb
@@ -569,7 +569,11 @@ zio_checksum_error(zio_t *zio, zio_bad_cksum_t *info)
|
||||
SPA_OLD_GANGBLOCKSIZE, offset, info);
|
||||
if (error == 0) {
|
||||
ASSERT3U(zio->io_child_type, ==, ZIO_CHILD_VDEV);
|
||||
zio_t *pio = zio_unique_parent(zio);
|
||||
zio_t *pio;
|
||||
for (pio = zio_unique_parent(zio);
|
||||
pio->io_child_type != ZIO_CHILD_GANG;
|
||||
pio = zio_unique_parent(pio))
|
||||
;
|
||||
zio_gang_node_t *gn = pio->io_private;
|
||||
gn->gn_gangblocksize = SPA_OLD_GANGBLOCKSIZE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user