Looks like a bug in the 7300 disk driver

Chris Calabrese[mav] cjc at ulysses.homer.nj.att.com
Tue Jan 10 06:48:40 AEST 1989


In article <813 at ttrde.UUCP>, pfales at ttrde.UUCP (Peter Fales) writes:
| I have discovered what appears to be a bug in the hard disk device driver
| for the unix-pc.  To demonstrate the bug, open the device "/dev/rfp000",
| using open(2) and read four bytes (one int) using read(2).  The
| read will actually return 512 bytes!  However, if "/dev/fp000" is used,
| the correct value of 4 is returned.

Correct me (not flame me :-) if I'm wrong, but I believe
that  /dev/rfp000 is the 'raw', or block version of /dev/fp000.
As such, it has no idea of 'bytes', but only 'blocks', which
happen to be 512 'bytes' in this case.
-- 
	Christopher J. Calabrese
	AT&T Bell Laboratories
	att!ulysses!cjc		cjc at ulysses.att.com



More information about the Unix-pc.general mailing list