Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 95 11:33:12 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        dufault@hda.com (Peter Dufault)
Cc:        freebsd-hackers@freefall.cdrom.com
Subject:   Re: Preserving "record structure" during device writes
Message-ID:  <9503291833.AA20122@cs.weber.edu>
In-Reply-To: <199503291507.KAA00338@hda.com> from "Peter Dufault" at Mar 29, 95 10:07:38 am

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm resurrecting my SCSI target stuff from 386bsd.
> 
> If processor A tries to read 32 bytes from processor B, and processor
> B only sends 8, physio keeps looping on the read until we either timeout
> or receive the full 32 bytes (four transfers).
> 
> What is the right way to handle this?  My inclination is that
> we want to return a short read, but then I can't just use rawread and
> rawwrite.

The short reads are necessary; remember the scanner stuff?


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9503291833.AA20122>