Subject: port-i386/1238: Reading past end of IDE disk causes EIO, not EOF
To: None <gnats-bugs@NetBSD.ORG>
From: Andreas Gustafsson <gson@araneus.pp.fi>
List: netbsd-bugs
Date: 07/17/1995 15:00:33
>Number: 1238
>Category: port-i386
>Synopsis: Reading past end of IDE disk causes EIO, not EOF
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 17 20:50:01 1995
>Last-Modified:
>Originator: Andreas Gustafsson
>Organization:
Araneus Information Systems Oy
>Release: NetBSD-current as of around June 4, 1995
>Environment:
System: NetBSD xxx.araneus.fi 1.0A NetBSD 1.0A (XXX) #14: Mon Jul 17 10:00:00 EET DST 1995 gson@araneus.pp.fi:/usr/src/sys/arch/i386/compile/XXX i386
>Description:
Attempting to read past the end of an IDE disk using
either the raw device or the block device causes an I/O
error and an unsightly error message on the console.
This behaviour is inconsistent with that of the floppy
and scsi disk drivers (checked on an earlier release),
both of which simply return an end-of-file when the
end of the device is reached. It also needlessly
complicates the task of making a bit-by-bit disk copy
using "dd".
>How-To-Repeat:
On a machine with an IDE disk, say
dd if=/dev/rwd0d of=/dev/null bs=512
and wait patiently until it has read the entire disk.
Then watch the error messages.
>Fix:
Unknown.
>Audit-Trail:
>Unformatted: