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
This commit is contained in:
parent
0ee0b82862
commit
eb6b3d396e
@ -2205,10 +2205,12 @@ samount(struct cam_periph *periph, int oflags, dev_t dev)
|
||||
(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 */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user