home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2976 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!scott
  3. From: scott@pita.cns.ucla.edu (Scott Burris)
  4. Subject: 386BSD 0.1: variable blocksize tape on SCSI bugfix
  5. Message-ID: <1992Jul27.130522.11907@mic.ucla.edu>
  6. Nntp-Posting-Host: pita.cns.ucla.edu
  7. Reply-To: scott@pita.cns.ucla.edu (Scott Burris)
  8. Organization: UCLA Campus Network Services
  9. Date: 27 Jul 92 13:05:21 PDT
  10. Lines: 25
  11.  
  12. The SCSI driver is broken for variable length tape devices.  The problem
  13. is that the data transfer length is computed by code which assumes a fixed
  14. block tape drive.  This causes the computer to transfer less data than
  15. the SCSI transaction calls for, which hangs the SCSI bus.  Context
  16. diff's follow.  
  17.  
  18.  
  19. *** as.c    Sun Jul 19 08:15:02 1992
  20. --- as.c.orig    Sat Jul 18 20:10:32 1992
  21. ***************
  22. *** 899,906 ****
  23.       n = 0;
  24.       sp = as->scatter_list;
  25.       nscatter = 0;
  26. -     if (as->tape && as->bs == 1)
  27. -         total = bp->b_bcount;
  28.       while (n < total && nscatter < NSCATTER) {
  29.           thistime = page_size - ((vm_offset_t)p - trunc_page (p));
  30.   
  31. --- 889,894 ----
  32. --
  33. ----------
  34. Scott Burris
  35. UCLA Campus Network Services
  36. cnetslb@oac.ucla.edu (213) 206-4860 - OR - scott@pita.cns.ucla.edu
  37.