Discussion:
NEW TAR
(too old to reply)
n***@freebsd.org
2004-07-17 19:01:10 UTC
Permalink
On Sat, 17 Jul 2004 10:37:28 -0700
* File format: bsdtar can read gtar files, including
long file names, long link names, and sparse files.
bsdtar can also read many other formats that gtar
does not support.
WoW! > shar format support
This is useful for ports committers:-). I wanted it!
Of course, I am using knu's sunshar. But...
p***@freebsd.org
2004-07-17 19:03:40 UTC
Permalink
--Q890D2P8qRlPhuOA
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 16, 2004 at 10:37:28AM -0700, Tim Kientzle wrote:
+> By default, /usr/bin/tar is now a symlink pointing
+> to /usr/bin/bsdtar.

And I hope it will stay. Great work, thank you!

--=20
Pawel Jakub Dawidek http://www.FreeBSD.org
***@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!

--Q890D2P8qRlPhuOA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA+Xf0ForvXbEpPzQRAmRRAJ4vHE5UrUcc6bUBsa5CbzOIr++VtACcCc/R
pJBJDrZIXVEa/rEQwLwbr/8=
=Ivxz
-----END PGP SIGNATURE-----

--Q890D2P8qRlPhuOA--
a***@nagual.pp.ru
2004-07-19 06:08:00 UTC
Permalink
* File format: bsdtar can read gtar files, including
long file names, long link names, and sparse files.
bsdtar can also read many other formats that gtar
does not support.
Addition:
bsdtar can't write sparse archives (Yet?).
--
Andrey Chernov | http://ache.pp.ru/
a***@nagual.pp.ru
2004-07-22 07:23:25 UTC
Permalink
but they're not gtar-compatible. (The gtar
approach has a number of drawbacks. The primary
one being that on many systems it requires reading
the entire file twice, once to find holes and again
to actually archive the file. It is possible to
do both in one pass if you store the sparse file
data in a different fashion.)
I can't imagine the case when 2 passes are needed. Even if you have normal
file in the archive and specify -S only when extracting (it should work as
expected), only 1 pass is needed. Just stop on first '\0' and count them
until they finished, then do lseek (real case will be a bit harder to
implement because of block boundaries).
--
Andrey Chernov | http://ache.pp.ru/
w***@khavrinen.lcs.mit.edu
2004-07-22 11:45:57 UTC
Permalink
I do not see, why it is important if the original file was sparse
at all or maybe in different places.
You've never run out of disk space as a result of a sparse file
becoming non-sparse?

-GAWollman
i***@hetzner.co.za
2004-07-22 13:23:13 UTC
Permalink
How does dump handle sparse files?
Dump handles fine sparse files.
Maybe I should have asked how does dump figure out that the files
are sparse and if it's any more intelligent than a 2 pass read (I
have no idea why 2 passes are required) or just blindly turning
successive zeros into a seek offset, is there anything preventing
BSD tar from doing the same?

Ian

--
Ian Freislich

Loading...