]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/boot/mips/uboot/Makefile
MFV r318929: 7786 zfs`vdev_online() needs better notification about state changes
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 26 May 2017 11:33:34 +0000 (11:33 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 26 May 2017 11:33:34 +0000 (11:33 +0000)
commit28c5e43e3673f2a2aa6c495995ac7ee55f04811e
tree9d5e055655f4c1202e8d18072f05c313b8f031bd
parent9c2a3c861fc2cd6372d911d62e1fedd298f4cd03
parent92455d0ccaa40594994e81c75d05648da0d4aedd
MFV r318929: 7786 zfs`vdev_online() needs better notification about state changes

illumos/illumos-gate@5f368aef86387d6ef4eda84030ae9b402313ee4c
https://github.com/illumos/illumos-gate/commit/5f368aef86387d6ef4eda84030ae9b402313ee4c

https://www.illumos.org/issues/7786
  Currently, vdev_online() will only post sysevent if previous state was
  "offline". It should also post the event when the state changes from "removed"
  or "faulted" to "healthy" or "degraded".
  This will fix the following scenario:
  - pull disk from slot A
  - check that hotspare has taken its place (if available)
  - insert disk into slot B
  - check that hotspare moved back to "avail" state (if spare was used)
  The problem here is that we don't get any ESC_ZFS_VDEV_* notification and fail
  to update the vdev FRU.

Reviewed by: Matthew Ahrens mahrens@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Approved by: Albert Lee <trisk@forkgnu.org>
Author: Yuri Pankov <yuri.pankov@nexenta.com>

MFC after: 1 week
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c