Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix,net.unix-wizards Subject: Re: Stacked dump tapes Message-ID: <1762@rlgvax.UUCP> Date: Wed, 29-Feb-84 23:16:10 EST Article-I.D.: rlgvax.1762 Posted: Wed Feb 29 23:16:10 1984 Date-Received: Sat, 3-Mar-84 00:19:02 EST References: <16873@sri-arpa.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 33 > 1) Does anyone have any caveats or horror stories about using multiple > partition dumps to multiple files on a single tape? One rather nasty horror story; the "dump" program determines the location of the end of the tape by dead reckoning. You tell it how long the tape is, and it counts blocks and stops when it *thinks* it's at the end. Not only is this a bit of a problem if you get tape errors (because most drives/drivers do a "write with extended interrecord gap" operation to skip the bad spot; this means not all the blocks on the tape are as long as "dump" thinks they are), but it really fouls up dumping multiple partitions to multiple files. The first dump doesn't have any trouble, but to have the second dump work you'd have to tell "dump" how long the remaining part of the tape was, etc.. The OS's handling of the end-of-tape condition (note - *not* error) should possibly be changed, and "dump" should be changed to use the end-of-tape indication to tell it when to change tapes. The DEC RSX-11 family OSes (including VMS) treat end of tape as a special condition, not an error; unfortunately, for UNIX to do this you would either have to use a new system call rather than "write" or have an "ioctl" call to test the EOT status and do that "ioctl" after *every* write. Given the RSX-11M (and probably many many other OSes) way of handling EOT, ANSI standard tapes deal with EOT by writing volume trailer records after the block that got the EOT condition. The tape foil should be placed (and usually is placed) sufficiently before the physical end of tape so that there is enough room to write the trailer labels. One does run the risk here of spinning the tape off the end of the reel, as the OS permits you to do this in order to let you write or read the trailer labels. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy