From 0825d024f6c302e5867b7dc3fc13669d8c6bce86 Mon Sep 17 00:00:00 2001 From: jmz Date: Fri, 1 Aug 1997 12:48:35 +0000 Subject: My previous commit was incomplete because it ignored the READ case. Now set explicitly the block size to 2048 when the device is opened for reading. --- sys/scsi/worm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/scsi') diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c index c7a79ce..785a349 100644 --- a/sys/scsi/worm.c +++ b/sys/scsi/worm.c @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: worm.c,v 1.42 1997/07/01 00:22:51 bde Exp $ + * $Id: worm.c,v 1.43 1997/07/26 15:07:42 jmz Exp $ */ #include "opt_bounce.h" @@ -552,6 +552,7 @@ worm_open(dev_t dev, int flags, int fmt, struct proc *p, worm->worm_flags &= ~WORMFL_TRACK_PREPED; sc_link->flags &= ~SDEV_OPEN; } + worm->blk_size = 2048; } } else worm->worm_flags |= WORMFL_IOCTL_ONLY; -- cgit v1.1