From owner-freebsd-current Fri Jan 7 0:26: 1 2000 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 5664C155E6 for ; Fri, 7 Jan 2000 00:25:58 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id JAA29548; Fri, 7 Jan 2000 09:24:48 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200001070824.JAA29548@freebsd.dk> Subject: Re: ATA driver problems In-Reply-To: <00Jan7.100119est.40323@border.alcanet.com.au> from Peter Jeremy at "Jan 7, 2000 10:01:19 am" To: peter.jeremy@alcatel.com.au (Peter Jeremy) Date: Fri, 7 Jan 2000 09:24:48 +0100 (CET) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Peter Jeremy wrote: > On 2000-Jan-06 10:38:51 +1100, I wrote: > ["dd if=/dev/rad0c of=/dev/null bs=64k" dies with an error] > > I did some poking around and found that there are two bugs which > conspire together to cause this: > 1) diskstrategy() does not detect dscheck() returning EOF, instead > passing a zero-length request to the underlying driver. > 2) The ata-disk driver doesn't check for (and ignore) zero-length > requests, instead passing them onto the disk. > > See kern/15956 for details and patches. Thanks! I'll take a look at it! -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message