]> 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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Nov 2022 18:10:05 +0000 (10:10 -0800)
commit8c0684d326b5eaf37842a9fc6c98edbb8e1fdd5f
tree0b3ad68284b4d10fc998ce235ae33d8f0904dc75
parentca3a675c746e3ba4da381ee4c3b218028c6dd112
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