From owner-freebsd-hackers Wed Mar 29 10:39:48 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA24745 for hackers-outgoing; Wed, 29 Mar 1995 10:39:48 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id KAA24724 for ; Wed, 29 Mar 1995 10:39:42 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA20122; Wed, 29 Mar 95 11:33:12 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9503291833.AA20122@cs.weber.edu> Subject: Re: Preserving "record structure" during device writes To: dufault@hda.com (Peter Dufault) Date: Wed, 29 Mar 95 11:33:12 MST Cc: freebsd-hackers@freefall.cdrom.com In-Reply-To: <199503291507.KAA00338@hda.com> from "Peter Dufault" at Mar 29, 95 10:07:38 am X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@FreeBSD.org Precedence: bulk > 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.