]> git.proxmox.com Git - mirror_zfs.git/commit
Sync AUX label during pool import
authorAmeer Hamza <ahamza@ixsystems.com>
Thu, 8 Aug 2024 22:16:46 +0000 (03:16 +0500)
committerGitHub <noreply@github.com>
Thu, 8 Aug 2024 22:16:46 +0000 (15:16 -0700)
commit5536c0dee278796f04cfa3b549e2a1d8edb717b7
tree43c8e44970c27acc9aceb70340ef8cce0820285b
parent0ccd4b9d01f74dab6261291d8a18f6ba7ff5799e
Sync AUX label during pool import

Spare and l2cache vdev labels are not updated during import. Therefore,
if disk paths are updated between pool export and import, the AUX label
still shows the old paths. This patch syncs the AUX label
during import to show the correct path information.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #15817
include/sys/spa_impl.h
module/zfs/spa.c
module/zfs/vdev_label.c