]> git.proxmox.com Git - mirror_zfs.git/commit
fix: Uber block label not always found for aux vdevs
authorAmeer Hamza <ahamza@ixsystems.com>
Thu, 4 Jan 2024 14:02:50 +0000 (19:02 +0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Jan 2024 21:17:14 +0000 (13:17 -0800)
commitd9885b3776f1ec1032e6edd1f60424d66d419113
tree918440b22dc2014acd226ff120a8108214dc1956
parent1f5bf96001469a61e6da576456bde2a7dee9c40f
fix: Uber block label not always found for aux vdevs

When spare or l2cache (aux) vdev is added during pool creation,
spa->spa_uberblock is not dumped until that point. Subsequently,
the aux label is never synchronized after its initial creation,
resulting in the uberblock label remaining undumped. The uberblock
is crucial for lib_blkid in identifying the ZFS partition type. To
address this issue, we now ensure sync of the uberblock label once
if it's not dumped initially.

Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #15737
include/sys/spa_impl.h
module/zfs/vdev_label.c