]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zed: unclean disk attachment faults the vdev
authorAmeer Hamza <ahamza@ixsystems.com>
Tue, 15 Nov 2022 00:59:03 +0000 (05:59 +0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 5 Jan 2023 19:09:36 +0000 (11:09 -0800)
commit2f2d6bece8526c144f34d891fff376c80494bae0
tree6a2431322292dad770446c101dcbf5670b80c299
parentfbbc375d43c6e2e746a0cff244dd5644f26d7972
zed: unclean disk attachment faults the vdev

If the attached disk already contains a vdev GUID, it
means the disk is not clean. In such a scenario, the
physical path would be a match that makes the disk
faulted when trying to online it. So, we would only
want to proceed if either GUID matches with the last
attached disk or the disk is in a clean state.

Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
cmd/zed/agents/zfs_mod.c
module/zfs/vdev.c