HomeFreeBSD

zed: post a udev change event from spa_vdev_attach()

Description

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

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Nov 18 2022, 7:39 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 27 2023, 6:32 PM
Parents
rGbd9a9a4e1ad3: zed: mark disks as REMOVED when they are removed
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG43d63ab2d4c1: zed: post a udev change event from spa_vdev_attach() (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Mar 27 2023, 6:32 PM