diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-09-14 19:00:51 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-09-14 19:00:51 +0000 |
commit | eb6b3d396e0aa9c8154a3b9ee5c0d20385992ec0 (patch) | |
tree | 8881801aa1851300883707c58837f10b95171796 /sys/cam | |
parent | 0ee0b82862934a6fcd4778eecfd51137849a1637 (diff) | |
download | FreeBSD-src-eb6b3d396e0aa9c8154a3b9ee5c0d20385992ec0.zip FreeBSD-src-eb6b3d396e0aa9c8154a3b9ee5c0d20385992ec0.tar.gz |
The code that sees a drive (at mount time) not in buffered mode and
attempts to set buffered mode was printing out "unable to set buffered
mode" no matter what. Oops.
Spotted by: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
MFC after: 3 weeks
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_sa.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index ede582c..cf8bde4 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -2205,10 +2205,12 @@ tryagain: (softc->quirks & SA_QUIRK_NO_MODESEL) == 0) { error = sasetparams(periph, SA_PARAM_BUFF_MODE, 0, 0, 0, SF_NO_PRINT); - if (error == 0) + if (error == 0) { softc->buffer_mode = SMH_SA_BUF_MODE_SIBUF; - xpt_print_path(ccb->ccb_h.path); - printf("unable to set buffered mode\n"); + } else { + xpt_print_path(ccb->ccb_h.path); + printf("unable to set buffered mode\n"); + } error = 0; /* not an error */ } |