Unrecognized archive format with RELENG_6_2 and RELENG_6
Robin Gruyters
r.gruyters at yirdis.nl
Wed Jun 6 06:44:26 UTC 2007
Quoting Tim Kientzle <kientzle at freebsd.org>:
>> On Monday 04 June 2007 17:46, Robin Gruyters wrote:
>>
>>> This morning I have revert libarchive (src/lib/libarchive) and tar
>>> (src/usr.bin/tar) back to RELENG_6_1 and surprisingly (or maybe not)
>>> it works fine now.
>>>
>>> Maybe tar doesn't use the -b option when listing the content? (-t)
>
> Could you please send me details of the problem
> you're having?
>
Ok, here a small setup.
I create a random file with roughly size of 5MB:
$ dd if=/dev/random of=archive.dmp bs=1024 count=5120
5120+0 records in
5120+0 records out
5242880 bytes transferred in 0.174116 secs (30111397 bytes/sec)
Then a tar the file (with or without blocksize set) to tape:
$ sudo tar -cf /dev/sa0 archive.dmp
$
After that I try to read/list the tar from tape with tar -t:
$ sudo mt -f /dev/sa0 rewind
$ sudo tar -tf /dev/sa0
archive.dmp
tar: Unrecognized archive format: Inappropriate file type or format
$
I get strait away the "Unrecognized archive" message.
But when I extract the archive from tape, it works perfectly:
$ sudo tar -xvf /dev/sa0
x archive.dmp
$
I have tested this with libarchive and tar from RELENG_6 and RELENG_6_2.
No problems with libarchive and tar from RELENG_6_1.
If you need more (debug) info, let me know
Kind regards,
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/20070606/bc8d45a7/attachment.pgp
More information about the freebsd-stable
mailing list