]> git.proxmox.com Git - mirror_zfs.git/commit
Exclude log device ashift from normal class
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 29 May 2019 18:35:50 +0000 (11:35 -0700)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 18:35:50 +0000 (11:35 -0700)
commit1e724f4f346486f27d57051df73361b0dacf5632
treee759c30512431e4b38869bb90e2ed98df4023761
parentec4afd27f198d93a7bd32a05cb288708ba754ada
Exclude log device ashift from normal class

When opening a log device during import its allocation bias will
not yet have been set by vdev_load().  This results in the log
device's ashift being incorrectly applied to the maximum ashift
of the vdevs in the normal class.  Which in turn prevents the
removal of any top-level devices due to the ashift check in the
spa_vdev_remove_top_check() function.

This issue is resolved by including vdev_islog in the check since
it will be set correctly during vdev_open().

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8735
module/zfs/vdev.c