home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4457 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.2 KB

  1. Path: sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!gmdtub!bigfoot!tmh
  2. From: tmh@doppel.first.gmd.de (Thomas Hoberg)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: SCSI driver bug when accessing DOS partition
  5. Message-ID: <TMH.92Aug20013232@doppel.first.gmd.de>
  6. Date: 19 Aug 92 23:32:32 GMT
  7. References: <1992Aug19.020535.2080@noose.ecn.purdue.edu>
  8. Sender: news@bigfoot.first.gmd.de
  9. Organization: GMD-FIRST, Berlin
  10. Lines: 36
  11. In-reply-to: tgt@neon.ecn.purdue.edu's message of 19 Aug 92 02:05:35 GMT
  12.  
  13. In article <1992Aug19.020535.2080@noose.ecn.purdue.edu> tgt@neon.ecn.purdue.edu (Conan the Librarian) writes:
  14.  
  15.    I ran across the following Adaptec driver bug when attempting to configure
  16.    mtools to read an 80 Mb DOS partition d:, which is on a SCSI disk.  The
  17.    problem: the SCSI driver routine asstart (in the file /sys/i386/isa/as.c)
  18.    fails with the message "out of range, cannot happen?" (due to
  19.    nscatter==NSCATTER, which means nothing to me!!).  This subsequently
  20.    causes the disk_read() routine of mtools (in the file buf_read()) to fail,
  21.    printing the message "disk_read: read: Device not configured"
  22.  
  23. This is not a bug but simply a limitation of the current SCSI driver.
  24. The Adaptec allows you to bundle a couple of reads together in a
  25. scatter list. The hardware maximum size for this list is 16/17 entries
  26. per mailbox. Since the Intel CPUs have a 4k page size at most 16 pages
  27. of 4k can be read with a single command (64k). At a 2k cluster size
  28. DOS allocates twice as many sectors for the FAT as there are megabytes
  29. in the partition. With partition sizes greater 64MB the fat_read()
  30. routines requests a read of more than 64k which then failes with that
  31. warning. There are several workarounds:
  32. 1) use the block device (slow, but the easiest)
  33. 2) hack mtools to do it's own buffering (some work)
  34. 3) use a bigger cluster size for your DOS partition (more wasted disk
  35. space)
  36.  
  37. Of course the best thing would be to enhance the Adaptec driver to
  38. support command chaining (even more work). There is a new Adaptec
  39. driver by Julian Fletcher (sp?) under evaluation, maybe that will fix
  40. the problem.
  41.  
  42. ---
  43. Thomas M. Hoberg   | Internet: tmh@first.gmd.de
  44. 1000 Berlin 41     |           tmh@cs.tu-berlin.de
  45. Wielandstr. 4      |
  46. Germany            | BITNET:   tmh@tub.bitnet 
  47. +49-30-851-50-21   |
  48.  
  49.