aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2008-11-22 13:33:06 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2008-11-22 13:33:06 +0000
commitbcfbcdca9c77fe4f4a65369cc22357df95f4af4b (patch)
tree7bd88ff5cd2debfd2d58f7e0f1930732a339eea9 /cddl
parent36aca13fdfa5dc78236226584eb9974586fca435 (diff)
downloadsrc-bcfbcdca9c77fe4f4a65369cc22357df95f4af4b.tar.gz
src-bcfbcdca9c77fe4f4a65369cc22357df95f4af4b.zip
IFp4: Don't rely on disk IDs and always use vdev guids, which means always look
up for components by reading metadata. This might be slower when there are big number of disks in the system, but is definiately more reliable.
Notes
Notes: svn path=/head/; revision=185174
Diffstat (limited to 'cddl')
-rw-r--r--cddl/compat/opensolaris/misc/deviceid.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cddl/compat/opensolaris/misc/deviceid.c b/cddl/compat/opensolaris/misc/deviceid.c
index f37b1d6d3563..e67d94aad506 100644
--- a/cddl/compat/opensolaris/misc/deviceid.c
+++ b/cddl/compat/opensolaris/misc/deviceid.c
@@ -94,11 +94,7 @@ int
devid_get(int fd, ddi_devid_t *retdevid)
{
- if (ioctl(fd, DIOCGIDENT, retdevid->devid) == -1)
- return (errno);
- if (retdevid->devid[0] == '\0')
- return (ENOENT);
- return (0);
+ return (ENOENT);
}
int