From owner-freebsd-hackers Wed Mar 29 07:07:26 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA20126 for hackers-outgoing; Wed, 29 Mar 1995 07:07:26 -0800 Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA20108 for ; Wed, 29 Mar 1995 07:07:22 -0800 Received: (dufault@localhost) by hda.com (8.6.9/8.3) id KAA00338; Wed, 29 Mar 1995 10:07:38 -0500 From: Peter Dufault Message-Id: <199503291507.KAA00338@hda.com> Subject: Preserving "record structure" during device writes To: freebsd-hackers@freefall.cdrom.com Date: Wed, 29 Mar 1995 10:07:38 -0500 (EST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 555 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. -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267