summaryrefslogtreecommitdiffstats
path: root/cddl/compat
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2008-11-22 13:33:06 +0000
committerpjd <pjd@FreeBSD.org>2008-11-22 13:33:06 +0000
commit86c4fc01236d99ad68401d289a486d84a01cb9c0 (patch)
tree7bd88ff5cd2debfd2d58f7e0f1930732a339eea9 /cddl/compat
parent8ab042140f8917f576756e581836993ed5741558 (diff)
downloadFreeBSD-src-86c4fc01236d99ad68401d289a486d84a01cb9c0.zip
FreeBSD-src-86c4fc01236d99ad68401d289a486d84a01cb9c0.tar.gz
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.
Diffstat (limited to 'cddl/compat')
-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 f37b1d6..e67d94a 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
OpenPOWER on IntegriCloud