Skip to content

Commit 7011fb6

Browse files
Yuri Pankovbehlendorf
authored andcommitted
Illumos #3517
3517 importing pool with autoreplace=on and "hole" vdevs crashes syseventd Reviewed by: Albert Lee <trisk@nexenta.com> Reviewed by: Jeffry Molanus <jeffry.molanus@nexenta.com> Reviewed by: George Wilson <gwilson@zfsmail.com> Approved by: Christopher Siden <christopher.siden@delphix.com> References: https://www.illumos.org/issues/3517 illumos/illumos-gate@efb4a87 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775
1 parent d1fada1 commit 7011fb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

module/zfs/spa.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
/*
2323
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24-
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
2524
* Copyright (c) 2012 by Delphix. All rights reserved.
25+
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
2626
*/
2727

2828
/*
@@ -1597,7 +1597,8 @@ spa_check_removed(vdev_t *vd)
15971597
for (c = 0; c < vd->vdev_children; c++)
15981598
spa_check_removed(vd->vdev_child[c]);
15991599

1600-
if (vd->vdev_ops->vdev_op_leaf && vdev_is_dead(vd)) {
1600+
if (vd->vdev_ops->vdev_op_leaf && vdev_is_dead(vd) &&
1601+
!vd->vdev_ishole) {
16011602
zfs_ereport_post(FM_EREPORT_RESOURCE_AUTOREPLACE,
16021603
vd->vdev_spa, vd, NULL, 0, 0);
16031604
spa_event_notify(vd->vdev_spa, vd, FM_EREPORT_ZFS_DEVICE_CHECK);

0 commit comments

Comments
 (0)