diff options
author | 2009-08-10 11:02:38 +0000 | |
---|---|---|
committer | 2009-08-10 11:02:38 +0000 | |
commit | bfeba3289d1978f123fdecc58ade1c593cb5a336 (patch) | |
tree | 48bab779d02a5cae8a625f8227e2106feb03869c | |
parent | Use an RB tree instead of a hashtable for fh/node lookups. (diff) | |
download | wireguard-openbsd-bfeba3289d1978f123fdecc58ade1c593cb5a336.tar.xz wireguard-openbsd-bfeba3289d1978f123fdecc58ade1c593cb5a336.zip |
if mpath steals a link, print out where the link was stolen so dmesg still
shows the physical topology of your system.
-rw-r--r-- | sys/scsi/scsiconf.c | 6 |
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); } |