On the first vdev open ignore impossible ashift hints
commit6187b194349c5a728c9df8c6842f1866d5c9782a
authorAlexander Motin <mav@FreeBSD.org>
Tue, 29 Oct 2024 19:23:24 +0000 (29 15:23 -0400)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 19:23:24 +0000 (29 15:23 -0400)
tree25970b0ab4b0b6071f62500c697f175baed6e55a
parent2bf15202110767b6adbacc02d7e9dae1c305d944
On the first vdev open ignore impossible ashift hints

If on the first open device's logical ashift is bigger than set
by pool's ashift property, ignore the last as unusable instead of
creating vdev that will fail most of I/Os due to misalignment.

Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by:   iXsystems, Inc.
Closes #16690
module/zfs/vdev.c