Page MenuHomeFreeBSD

D4861.id12125.diff
No OneTemporary

D4861.id12125.diff

Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
===================================================================
--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -594,7 +594,15 @@
vdev_geom_read_guids(zcp, &pguid, &vguid);
g_topology_lock();
vdev_geom_detach_taster(zcp);
- if (pguid != spa_guid(vd->vdev_spa) ||
+ /*
+ * Check that the label's vdev guid matches the
+ * desired guid. If the label has a pool guid,
+ * check that it matches too. (Inactive spares
+ * and L2ARCs do not have any pool guid in the
+ * label.)
+ */
+ if ((pguid != spa_guid(vd->vdev_spa) &&
+ pguid != 0) ||
vguid != vd->vdev_guid)
continue;
cp = vdev_geom_attach(pp, vd);

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 5, 11:14 AM (10 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34706847
Default Alt Text
D4861.id12125.diff (830 B)

Event Timeline