mirror_zfs/cmd/zpool
Alexander Motin 1397bf1e0e Explicit set ashift for non-leaf vdevs
Before this change ashift property was applied only to a leaf
vdevs.  As result, it worked only as a minimal value for parent
vdevs, since bigger physical_ashift value reported by any child
could be used instead when deciding parent's ashift, as if the
ashift property was never set.

This change explicitly passes ZPOOL_CONFIG_ASHIFT to all vdevs,
allowing override for parents only if the passed value is below
logical_ashift and so unacceptable.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>
Closes #17826
2025-12-19 19:55:14 -08:00
..
compatibility.d Update compatibility.d files 2024-10-02 20:59:35 -07:00
os GCC 15: Fix unterminated-string-initialization (#17244) 2025-04-16 09:59:45 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00
Makefile.am Update compatibility.d files 2024-10-02 20:59:35 -07:00
zpool_iter.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zpool_main.c zpool: clarify ZPOOL_STATUS_REMOVED_DEV status message 2025-06-17 10:50:26 -07:00
zpool_util.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zpool_util.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zpool_vdev.c Explicit set ashift for non-leaf vdevs 2025-12-19 19:55:14 -08:00