home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2793 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.7 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!jds
  2. From: jds@cs.umd.edu (James da Silva)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: 386BSD & SCSI - Multiple file tapes
  5. Message-ID: <59214@mimsy.umd.edu>
  6. Date: 24 Jul 92 18:01:22 GMT
  7. References: <1992Jul23.125510.4250@ulrik.uio.no> <1992Jul23.130323.4617@ulrik.uio.no>
  8. Sender: news@mimsy.umd.edu
  9. Organization: University of Maryland, Department of Computer Science
  10. Lines: 44
  11.  
  12. toreh@bootes.sds.no (Tore Haraldsen) writes:
  13. >It IS possible to read multiple file tapes, if you do the following
  14. >modifications to i386/isa/as.c:
  15. >
  16. >1) Change the definition of dev_rewind macro to use a mask outside the
  17. >   other fields used by the scsi driver. Using the partition field for
  18. >   no-rewind flags will not work, due to imprecise coding elsewhere in
  19. >   the driver. Use 0100 for instance. Make a new kernel.
  20.  
  21. I didn't find this to be necessary.  I just commented out a test in
  22. asopen() in as.c as follows:
  23.  
  24. *** /tmp/,RCSt1000161    Sat Jul 25 18:24:22 1992
  25. --- as.c    Sat Jul 25 18:23:48 1992
  26. ***************
  27. *** 429,438 ****
  28. --- 429,440 ----
  29.           }
  30.       }
  31.       
  32. + /*
  33.       if (as->tape &&  dev_part(dev)) {
  34.           error = EIO;
  35.           goto done;
  36.       }
  37. + */
  38.   
  39.       as->scsi_cdb_len = 10;
  40.       bzero(cdb, 10);
  41.  
  42.  
  43. >2) Create a device with this capability:
  44. >        mknod /dev/nras2a c 13 80
  45.  
  46. I did have to mknod a device with the partition field set to 1 as mentioned
  47. in the instructions at the top of as.c.  For a tape at target 2:
  48.  
  49.     ln /dev/ras2a /dev/rst2        # rewind device
  50.     mknod /dev/nrst2 c 13 17    # no-rewind device
  51.  
  52. Jaime
  53. ............................................................................
  54. : Stand on my shoulders, : jds@cs.umd.edu  :              James da Silva
  55. : not on my toes.     : uunet!mimsy!jds : Systems Design & Analysis Group
  56.