]> git.proxmox.com Git - mirror_zfs.git/commit
zed: post a udev change event from spa_vdev_attach()
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Fri, 18 Nov 2022 19:39:59 +0000 (00:39 +0500)
committerGitHub <noreply@github.com>
Fri, 18 Nov 2022 19:39:59 +0000 (11:39 -0800)
commit3a74f488fcd9b3802efa366adcb813415d3f13a8
treea4b67bbaf535ccaa8a8f6d642796efffffc27a59
parent3226e0dc8ef6f7770035c42b28f2b088bbdd2944
zed: post a udev change event from spa_vdev_attach()

In order for zed to process the removal event correctly,
udev change event needs to be posted to sync the blkid
information. spa_create() and spa_config_update() posts
the event already through spa_write_cachefile(). Doing
the same for spa_vdev_attach() that handles the case
for vdev attachment and replacement.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #14172
module/zfs/spa_misc.c