diff options
author | asomers <asomers@FreeBSD.org> | 2016-01-11 22:15:46 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2016-01-11 22:15:46 +0000 |
commit | adf93787ff7f65a23a882b2be690a877d7a22332 (patch) | |
tree | 8fc84fe11fdc49d4a473351dc333a75bcbc27bb5 /sys/dev/rtwn | |
parent | 728878b7d7d47d22224013c41e3638b0b2e11332 (diff) | |
download | FreeBSD-src-adf93787ff7f65a23a882b2be690a877d7a22332.zip FreeBSD-src-adf93787ff7f65a23a882b2be690a877d7a22332.tar.gz |
Fix importing l2arc device by guid
After r292066, vdev_geom verifies both the vdev and pool guids of device
labels during open. However, spare and l2arc devices don't have pool guids,
so opening them by guid will fail (opening by path, when the pathname is
known, still succeeds). This change allows a vdev to be opened by guid if
the label contains no pool_guid, which is the case for inactive spares and
l2arc devices.
PR: 292066
Reported by: delphij
Reviewed by: delphij, smh
MFC after: 2 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4861
Diffstat (limited to 'sys/dev/rtwn')
0 files changed, 0 insertions, 0 deletions