diff options
author | 2008-10-07 12:34:30 +0000 | |
---|---|---|
committer | 2008-10-07 12:34:30 +0000 | |
commit | cec90523991d0a37f6e0070e2ba3b3216b8bb864 (patch) | |
tree | cd36da11856b6ceffc7ff0c36174e939d444bcd3 /sys | |
parent | Prevent cvs keyword expansion from causing a test failure. (diff) | |
download | wireguard-openbsd-cec90523991d0a37f6e0070e2ba3b3216b8bb864.tar.xz wireguard-openbsd-cec90523991d0a37f6e0070e2ba3b3216b8bb864.zip |
if fetching a config page for a sas target doesnt work then let the scsi
midlayer try to probe it anyway. this lets raid devices configured on an
mpi to work again.
reported by djm@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mpi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index ff54c559ced..e8b0698410a 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.97 2008/09/30 23:58:40 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.98 2008/10/07 12:34:30 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -1405,10 +1405,8 @@ mpi_scsi_probe(struct scsi_link *link) address, &ehdr) != 0) return (EIO); - if (mpi_ecfg_page(sc, address, &ehdr, 1, &pg0, sizeof(pg0)) != 0) { - /* the device probably doesnt exist if the page fetch fails */ - return (ENXIO); - } + if (mpi_ecfg_page(sc, address, &ehdr, 1, &pg0, sizeof(pg0)) != 0) + return (0); DPRINTF(MPI_D_MISC, "%s: mpi_scsi_probe sas dev pg 0 for target %d:\n", DEVNAME(sc), link->target); |