HomeFreeBSD

zed: Fix zed ASSERT on slot power cycle

Description

zed: Fix zed ASSERT on slot power cycle

We would see zed assert on one of our systems if we powered off a
slot. Further examination showed zfs_retire_recv() was reporting
a GUID of 0, which in turn would return a NULL nvlist. Add
in a check for a zero GUID.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15084

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Jul 21 2023, 6:46 PM
GitHub <noreply@github.com>Committed on Jul 21 2023, 6:46 PM
Parents
rG2d8a2b51dcc0: Fix zpl_test_super race with zfs_umount
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGab0b0393cbd7: zed: Fix zed ASSERT on slot power cycle (authored by Tony Hutter <hutter2@llnl.gov>).Jul 21 2023, 6:46 PM