Unrecognized archive format with RELENG_6_2 and RELENG_6
Robin Gruyters
r.gruyters at yirdis.nl
Thu Jun 7 13:38:47 UTC 2007
Quoting Tim Kientzle <kientzle at freebsd.org>:
>>>> After that I try to read/list the tar from tape with tar -t:
>>>> $ sudo tar -tf /dev/sa0
>>>> archive.dmp
>>>> tar: Unrecognized archive format: Inappropriate file type or format
>>>>
>>>> But when I extract the archive from tape, it works perfectly:
>>>> $ sudo tar -xvf /dev/sa0
>>>
>>> Using dd to feed tar does work though. (I think this agrees with Robin's
>>> findings although the fact that it works with -z is curious)
>>>
>>> This is a Tandberg TS400 (LTO2 drive, LTO1 tape)
>>>
>> idd, same problem here. When using -z option, works perfectly.
>> Without it, it fails.
>>
>> Our tapedrive is a "HP C7438A V312". (DAT)
>
> Please try the following:
>
> sudo ktrace tar -tf /dev/sa0
>
> Then run 'kdump | less' and see if you can find a pair of 'lseek' calls,
> which will probably look something like this:
>
> 53127 bsdtar CALL lseek(0x3,0,0,0,0x1)
> 53127 bsdtar RET lseek 6656000/0x659000
> 53127 bsdtar CALL lseek(0x3,0,0x70800,0,0x1)
> 53127 bsdtar RET lseek 7116800/0x6c9800
>
Here you go:
95225 bsdtar CALL lseek(0x3,0,0,0,0x1)
95225 bsdtar RET lseek 65536/0x10000
95225 bsdtar CALL lseek(0x3,0,0,0,0x1)
95225 bsdtar RET lseek 65536/0x10000
Robin Gruyters
Network and Security Engineer
Yirdis B.V.
I: http://yirdis.com
P: +31 (0)36 5300394
F: +31 (0)36 5489119
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: PGP Digital Signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070607/33e98849/attachment.pgp
More information about the freebsd-stable
mailing list