summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1997-08-01 12:48:35 +0000
committerjmz <jmz@FreeBSD.org>1997-08-01 12:48:35 +0000
commit0825d024f6c302e5867b7dc3fc13669d8c6bce86 (patch)
treeded74ed5d427db7d9b9548da55c734b819fc03db /sys/scsi
parent21f15a78ef25cafe5568ee6a7eb4673f2d7faedf (diff)
downloadFreeBSD-src-0825d024f6c302e5867b7dc3fc13669d8c6bce86.zip
FreeBSD-src-0825d024f6c302e5867b7dc3fc13669d8c6bce86.tar.gz
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.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/worm.c3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud