From efbbf1b09f5527d2c1c4e43f9d054a55ce0ab5a5 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sun, 24 Apr 1994 05:40:05 +0000 Subject: Deal with variable-length drives that don't specify a maximum block size. c.f. SCSI 2 protocol definition. --- sys/dev/scsipi/st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/scsipi/st.c b/sys/dev/scsipi/st.c index f038a719bf4..85347e8ec64 100644 --- a/sys/dev/scsipi/st.c +++ b/sys/dev/scsipi/st.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: st.c,v 1.28 1994/04/13 05:43:21 mycroft Exp $ + * $Id: st.c,v 1.29 1994/04/24 05:40:05 mycroft Exp $ */ /* @@ -892,7 +892,8 @@ ststrategy(bp) /* * as are out-of-range requests on variable drives. */ - else if (bp->b_bcount < st->blkmin || bp->b_bcount > st->blkmax) { + else if (bp->b_bcount < st->blkmin || + (st->blkmax && bp->b_bcount > st->blkmax)) { printf("%s: bad request, must be between %d and %d\n", st->sc_dev.dv_xname, st->blkmin, st->blkmax); bp->b_error = EIO; -- cgit