home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth!alan
- From: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
- Newsgroups: comp.unix.ultrix
- Subject: Re: 2Gig Rule??
- Message-ID: <1992Sep2.010447.2803@nntpd2.cxo.dec.com>
- Date: 2 Sep 92 01:04:47 GMT
- 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>
- Sender: alan@nabeth (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
- Reply-To: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
- Organization: Digital Equipment Corporation
- Lines: 57
-
-
- In article <14475@gazette.bcm.tmc.edu>, tso@cephalo.neusc.bcm.tmc.edu (Dan Ts'o) writes:
- >
- >In article <1992Sep1.123146.23436@decvax.dec.com> jag@zk3.dec.com writes:
- >>>Solution? The SCSI CAM driver available with V4.2 has a way of
- >>>presenting a suitable lie to the file layer about the byte offset
- >>>for large tapes. ...............................................
- >>
- >> The "lie" is in the V4.2c release. The V4.2c release contains the CAM
- >>subset for the V4.2a Ultrix product.
- >
- > Is the lie in the VAX Ultrix TMSCP driver as well ? I hang the Exabyte
- >off of a SCSI controller that emulates a TMSCP/TK50.
-
- I'd guess not, but maybe the person owning the tape class driver is
- reading the newsgroup. I think John only does the SCSI driver. He'd
- probably know who to ask though.
- >
- > Are there similar problems when trying to use a 2.4Gb SCSI disk?
-
- I'll guess again. Yes, if you want to use the whole disk as a single
- device (classic C partition use). On the other hand you can probably
- partition the disk to use parts of it, with each part being less than
- 2 GB.
-
- >I just took delivery on several such devices. I thought the filesystem used
- >-1L as the error for lseek and upper bound for filesystems. It should use
- >unsigned longs and be good upto 4Gb.
-
- There are a couple of problems with this. If you use an unsigned ANYTHING
- you can't check against -1. If you're lucky the compiler will do the
- correct thing, and only lint will complain. That's doesn't make the
- 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.
-
- Finally, the most serious problem is the one you'd least expect. How many
- times have you seen code that checks for the -1 error indicator written as:
-
- if( system_call(arg-list) < 0 )
- error ;
-
- Yes -1 is less than zero, but this removes the chance of using all those numbers
- inbetween -1 and MAXINT for anything useful if you decide to play typecasting
- games.
-
- > Bottom line: how can I use a 2.4Gb disk on Vax Ultrix using
- > the MSCP driver?
-
- Partition the disk into a 2 GB piece and a .4 GB piece. Depending
- on how you count 2 GB you might be able to go to around 2.1 GB.
-
- > Please email responses. Thanks.
-
- I'll also post because the answer might be of general interest.
-
- > Dan Ts'o
- --
- Alan Rollow alan@nabeth.cxo.dec.com
-