HomeFreeBSD

zed: Avoid core dump if wholedisk property does not exist

Description

zed: Avoid core dump if wholedisk property does not exist

zed aborts and dumps core in vdev_whole_disk_from_config() if
wholedisk property does not exist. make_leaf_vdev() adds the
property but there may be already pools that don't have the
wholedisk in the label.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #14062

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Oct 21 2022, 5:46 PM
GitHub <noreply@github.com>Committed on Oct 21 2022, 5:46 PM
Parents
rGc5a388a1ef07: Add delay between zpool add zvol and zpool destroy
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG0b2428da20c6: zed: Avoid core dump if wholedisk property does not exist (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Oct 21 2022, 5:46 PM