diff options
| author | shidokht <none@none> | 2006-01-31 17:35:34 -0800 |
|---|---|---|
| committer | shidokht <none@none> | 2006-01-31 17:35:34 -0800 |
| commit | 22d011447dd46899877819b42a613c4f3c0f1339 (patch) | |
| tree | a723b1b9b50815b3adc221c71073c306da718cf1 /usr/src/cmd/biosdev | |
| parent | 08ec9bcea3360c6dfb0946faabe2f24b459ad63a (diff) | |
| download | illumos-joyent-22d011447dd46899877819b42a613c4f3c0f1339.tar.gz | |
6362081 biosdev causes LU to fail on two disk w2100z
Diffstat (limited to 'usr/src/cmd/biosdev')
| -rw-r--r-- | usr/src/cmd/biosdev/biosdev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/biosdev/biosdev.c b/usr/src/cmd/biosdev/biosdev.c index 0f77213c4f..618681a446 100644 --- a/usr/src/cmd/biosdev/biosdev.c +++ b/usr/src/cmd/biosdev/biosdev.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -370,24 +370,24 @@ match_edd(biosdev_data_t *bdata) if (strncmp(bd->interface_type, "SCSI", 4) == 0) { /* at this time sd doesnot support luns greater than uchar_t */ - (void) snprintf(path, MAXPATHLEN, "%s/sd@%d,%d", devfspath, + (void) snprintf(path, MAXPATHLEN, "%s/sd@%x,%x", devfspath, bd->devicepath.scsi.target, bd->devicepath.scsi.lun_lo); } else if (strncmp(bd->interface_type, "ATAPI", 5) == 0) { - (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/sd@%d,0", + (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/sd@%x,0", devfspath, bd->interfacepath.pci.channel, bd->devicepath.ata.chan); } else if (strncmp(bd->interface_type, "ATA", 3) == 0) { - (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/cmdk@%d,0", + (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/cmdk@%x,0", devfspath, bd->interfacepath.pci.channel, bd->devicepath.ata.chan); } else if (strncmp(bd->interface_type, "SATA", 4) == 0) { - (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/cmdk@%d,0", + (void) snprintf(path, MAXPATHLEN, "%s/ide@%d/cmdk@%x,0", devfspath, bd->interfacepath.pci.channel, bd->devicepath.ata.chan); |
