summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-02-24 23:40:32 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-02-24 23:40:32 +0000
commitc27da220195bc8f6cd63b71e83901fc161ac9907 (patch)
tree12b0ab635268f94235a4f36bf059ccd7139f4606 /sys/dev
parent54556544d6a355df4528879b60cfcca2ab1ef101 (diff)
we want to look up the device attached to a raid volume by its address on
the bus, not which bioctl volume id it is. ok mikeb@ krw@ miod@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/mpii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 44f37ab1f85..e547b641a64 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.38 2011/02/21 09:36:15 dlg Exp $ */
+/* $OpenBSD: mpii.c,v 1.39 2011/02/24 23:40:31 dlg Exp $ */
/*
* Copyright (c) 2010 Mike Belopuhov <mkb@crypt.org.ru>
* Copyright (c) 2009 James Giannoules
@@ -4958,7 +4958,7 @@ mpii_ioctl_vol(struct mpii_softc *sc, struct bioc_vol *bv)
bv->bv_size = letoh64(vpg->max_lba) * letoh16(vpg->block_size);
- lnk = scsi_get_link(sc->sc_scsibus, bv->bv_volid, 0);
+ lnk = scsi_get_link(sc->sc_scsibus, dev->slot, 0);
if (lnk != NULL) {
scdev = lnk->device_softc;
strlcpy(bv->bv_dev, scdev->dv_xname, sizeof(bv->bv_dev));