From 86c4fc01236d99ad68401d289a486d84a01cb9c0 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 22 Nov 2008 13:33:06 +0000 Subject: 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. --- cddl/compat/opensolaris/misc/deviceid.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cddl/compat') 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 -- cgit v1.1