summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-08-10 11:02:39 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-08-10 11:02:39 +0000
commitda4d9bdfabf577c666aee81ebc914ff35f0321e9 (patch)
tree4c137147d96d9f863d9e2ac605e3965ee6d37f2b /sys
parent1d8d448a9fb61100e94a53ac58ef000a43facc2d (diff)
if mpath steals a link, print out where the link was stolen so dmesg still
shows the physical topology of your system.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsiconf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 66104090542..3d361289752 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.141 2009/08/10 10:51:17 dlg Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.142 2009/08/10 11:02:38 dlg Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -824,6 +824,10 @@ scsi_probedev(struct scsibus_softc *scsi, int target, int lun)
#if NMPATH > 0
/* should multipathing steal the link? */
if (mpath_path_attach(sc_link) == 0) {
+ printf("%s: path to", scsi->sc_dev.dv_xname);
+ scsibus_printlink(sc_link);
+ printf("\n");
+
scsi->sc_link[target][lun] = sc_link;
return (0);
}