Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161446089
D4861.id12130.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
845 B
Referenced Files
None
Subscribers
None
D4861.id12130.diff
View Options
Index: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
===================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ head/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 != 0 &&
+ pguid != spa_guid(vd->vdev_spa)) ||
vguid != vd->vdev_guid)
continue;
cp = vdev_geom_attach(pp, vd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 8:57 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34681619
Default Alt Text
D4861.id12130.diff (845 B)
Attached To
Mode
D4861: Fix importing l2arc device by guid
Attached
Detach File
Event Timeline
Log In to Comment