]> git.proxmox.com Git - mirror_zfs.git/commit
zed: Avoid core dump if wholedisk property does not exist
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Fri, 21 Oct 2022 17:46:38 +0000 (22:46 +0500)
committerGitHub <noreply@github.com>
Fri, 21 Oct 2022 17:46:38 +0000 (10:46 -0700)
commit0b2428da20c69bf32bbb9cbf561aa615fee64395
tree5563d927bd564ce239906efef30e77cd2e7a6a4a
parentc5a388a1ef071b308ab0985fe831f94639fd4d7c
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
cmd/zed/agents/zfs_mod.c