From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4251ebb485b2ad78 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-19 15:10:54 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Subject: Re: Newbie questions on dump Message-ID: <1993Aug19.220129.21614@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: <14941557@MVB.SAIC.COM> <1993Aug18.212324.4584@nntpd2.cxo.dec.com> <14966364@MVB.SAIC.COM> Date: Thu, 19 Aug 1993 22:01:29 GMT In article <14966364@MVB.SAIC.COM>, matthews@apg5.saic.com (Cameron H. Matthews) writes: > [ Having discovered how to put multiple dumps on a single tape the > the customer now wishes to get listing of what is on each dump... ] > > >To list the files: > >$ restore -t -f /dev/nrmt0h >$ mt fsf 1 >$ restore -t > >Is there a better way? Not really. The problem is that the archive is roughly in two parts; the directory and the data. The -t options reads up to the end of the directory part and stops. If there is any data, you have to skip over it to get to the next dump. If the dump was empty, some versions will leave you at start of the next dump and the mt trick won't work consistently. A solution might be to add an option that will have restore read the directory and skip to the beginning of the next dump. Decent tape drives with a fast file mark search and good software support can make this a reasonably fast operation. An alternate solution might be to add an option to restore to say "read all the directories until EOT". Finally, you could just change the behaviour of -t to read the rest of the archive. I don't know what assumptions that may break, if any. An alternate to the mt(1) is dd(1), but I suspect mt is easier. > >Thanks for your responses, Allan. > >Cameron > > -- Alan Rollow alan@nabeth.cxo.dec.com