home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6634 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  3.0 KB

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth!alan
  2. From: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: 2Gig Rule??
  5. Message-ID: <1992Sep2.010447.2803@nntpd2.cxo.dec.com>
  6. Date: 2 Sep 92 01:04:47 GMT
  7. References: <1992Aug30.055157.1084@crc.ricoh.com> <1992Aug31.182440.3845@nntpd2.cxo.dec.com> <1992Sep1.123146.23436@decvax.dec.com> <14475@gazette.bcm.tmc.edu>
  8. Sender: alan@nabeth (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  9. Reply-To: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  10. Organization: Digital Equipment Corporation
  11. Lines: 57
  12.  
  13.  
  14. In article <14475@gazette.bcm.tmc.edu>, tso@cephalo.neusc.bcm.tmc.edu (Dan Ts'o) writes:
  15. >
  16. >In article <1992Sep1.123146.23436@decvax.dec.com> jag@zk3.dec.com writes:
  17. >>>Solution?  The SCSI CAM driver available with V4.2 has a way of
  18. >>>presenting a suitable lie to the file layer about the byte offset
  19. >>>for large tapes.  ...............................................
  20. >>
  21. >>    The "lie" is in the V4.2c release.  The V4.2c release contains the CAM
  22. >>subset for the V4.2a Ultrix product.
  23. >
  24. >    Is the lie in the VAX Ultrix TMSCP driver as well ? I hang the Exabyte
  25. >off of a SCSI controller that emulates a TMSCP/TK50.
  26.  
  27. I'd guess not, but maybe the person owning the tape class driver is
  28. reading the newsgroup.  I think John only does the SCSI driver.  He'd
  29. probably know who to ask though.
  30. >
  31. >    Are there similar problems when trying to use a 2.4Gb SCSI disk?
  32.  
  33. I'll guess again.  Yes, if you want to use the whole disk as a single
  34. device (classic C partition use).  On the other hand you can probably
  35. partition the disk to use parts of it, with each part being less than
  36. 2 GB.
  37.  
  38. >I just took delivery on several such devices. I thought the filesystem used
  39. >-1L as the error for lseek and upper bound for filesystems. It should use
  40. >unsigned longs and be good upto 4Gb.
  41.  
  42. There are a couple of problems with this.  If you use an unsigned ANYTHING
  43. you can't check against -1.  If you're lucky the compiler will do the
  44. correct thing, and only lint will complain.  That's doesn't make the
  45. code less broken though.  If the long happens to be a 64 bit number it being signed probably won't cause any problems for another couple of years.
  46.  
  47. Finally, the most serious problem is the one you'd least expect.  How many
  48. times have you seen code that checks for the -1 error indicator written as:
  49.  
  50.     if( system_call(arg-list) < 0 )
  51.         error ;
  52.  
  53. Yes -1 is less than zero, but this removes the chance of using all those numbers
  54. inbetween -1 and MAXINT for anything useful if you decide to play typecasting
  55. games.
  56.  
  57. >    Bottom line: how can I use a 2.4Gb disk on Vax Ultrix using
  58. >       the MSCP driver?
  59.  
  60. Partition the disk into a 2 GB piece and a .4 GB piece.  Depending
  61. on how you count 2 GB you might be able to go to around 2.1 GB.
  62.  
  63. >    Please email responses. Thanks.
  64.  
  65. I'll also post because the answer might be of general interest.
  66.  
  67. >                Dan Ts'o
  68. --
  69. Alan Rollow                alan@nabeth.cxo.dec.com
  70.