Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Jun 2007 15:38:45 +0200
From:      Robin Gruyters <r.gruyters@yirdis.nl>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Unrecognized archive format with RELENG_6_2 and RELENG_6
Message-ID:  <20070607153845.24h3nl968skg4scc@server.yirdis.nl>
In-Reply-To: <46679117.5060909@freebsd.org>
References:  <20070601114047.z6qgi686os4ogw4o@server.yirdis.nl> <46658EEB.5000008@freebsd.org> <20070606084406.8v6nkbtv9csgs880@server.yirdis.nl> <200706061715.06603.doconnor@gsoft.com.au> <20070606095820.83tast6s0804osos@server.yirdis.nl> <46679117.5060909@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_1qej9eria2ro
Content-Type: text/plain;
	charset=ISO-8859-1;
	DelSp="Yes";
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quoting Tim Kientzle <kientzle@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.  =20
>> 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



--=_1qej9eria2ro
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQBGaAplLh3hlgHmc7MRAnW9AKDQLwIGVZKR+aMPNjiIg4T3qQedRQCfSvbE
wtm60Amiv6qjr6QD8UCU5Q8=
=sK4o
-----END PGP SIGNATURE-----

--=_1qej9eria2ro--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070607153845.24h3nl968skg4scc>