HomeFreeBSD

FreeBSD: Use ashift in vdev_check_boot_reserve()

Description

FreeBSD: Use ashift in vdev_check_boot_reserve()

We should not hardcode 512-byte read size when checking for loader
in the boot area before RAIDZ expansion. Disk might be unable to
handle that I/O as is, and the code zio_vdev_io_start() handling
the padding asserts doing it only for top-level vdev.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16942

Details

Provenance
mavAuthored on Sat, Jan 11, 9:26 AM
GitHub <noreply@github.com>Committed on Sat, Jan 11, 9:26 AM
Parents
rGb8e09c7007a0: ZTS: remove empty zpool_add--allow-ashift-mismatch test
Branches
Unknown
Tags
Unknown