bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Reading out the label (and _only_ the label)


From: Wouter Verhelst
Subject: Re: [Bug-tar] Reading out the label (and _only_ the label)
Date: Wed, 28 Sep 2005 23:31:02 +0200
User-agent: Mutt/1.5.11

On Wed, Sep 28, 2005 at 09:49:45PM +0100, Ralph Corderoy wrote:
> Hi Wouter,
> 
> > Unfortunately, the only non-destructive actions that I've found that
> > will make tar read out the label and/or exit with a status code if the
> > label isn't what I'm giving it, involve reading out the entire archive
> > from tape. Since these tapes are rather large and I'm not sure I'll
> > find the right label first time around, I'd rather avoid this if at
> > all possible.
> 
> Can't you use dd(1) to read only a little bit of the tar file and feed
> that to tar?
> 
>     dd if=/dev/st0 bs=1k count=20 | tar tvf - | ...test label

Sure; I just wanted to be sure the feature doesn't exist before I
started using workarounds like this one (it would also make sense that
there was such a feature, especially in cases like rmt or so)

-- 
Wouter Verhelst
NixSys BVBA
Louizastraat 14, 2800 Mechelen
T: +32 15 27 69 50 / F: +32 15 27 69 51 / M: +32 486 836 198




reply via email to

[Prev in Thread] Current Thread [Next in Thread]