From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: tar badly hosed under OSF/1 V3 (first example)
Date: Tue, 6 Dec 1994 17:01:57 GMT [thread overview]
Message-ID: <D0EFBA.8ox@info.physics.utoronto.ca> (raw)
After upgrading all our AXPs from V2.0 to V3.0 of OSF/1, I discovered that
there are some really fundamental problems with tar (or actually, with the
new "pax" command, which "tar" is just a link to). Here's just one example
(others are documented in separate messages) ...
Under OSF/1 V3, tar creates archives which can be read by OSF/1's tar, but
which other flavours of tar (e.g. IRIX4, SunOS4) have some problems with.
Specifically, the information in the archive that indicates something is a
directory isn't recognized by the other vendors' versions of tar. (For all
I know, OSF/1 V3 tar might not be compatible with OSF/1 V2 tar, either.)
Starting with the following hierarchy ...
foo/foo1/foo1.a
foo/foo1/foo1.b
foo/foo2/foo2.a
foo/foo2/foo2.b
bar/bar1/bar1.a
bar/bar1/bar1.b
bar/bar2/bar2.a
bar/bar2/bar2.b
... I created three tar archives (one each under OSF/1, IRIX, and SunOS), in
the same way ("tar cf spam.`uname` foo bar"). Note that OSF/1 has no problem
reading the IRIX and SunOS versions:
moose> for x in spam.*; do
moose>> echo ===== $x =====
moose>> tar tvf $x
moose>> done
===== spam.IRIX =====
tar: blocksize = 40
drwxr-xr-x 398/10 0 Dec 6 11:26:58 1994 foo/
drwxr-xr-x 398/10 0 Dec 6 11:26:53 1994 foo/foo1/
-rw-r--r-- 398/10 11 Dec 6 09:39:58 1994 foo/foo1/foo1.a
-rw-r--r-- 398/10 11 Dec 6 09:39:58 1994 foo/foo1/foo1.b
drwxr-xr-x 398/10 0 Dec 6 11:26:56 1994 foo/foo2/
-rw-r--r-- 398/10 11 Dec 6 09:39:58 1994 foo/foo2/foo2.a
-rw-r--r-- 398/10 11 Dec 6 09:39:58 1994 foo/foo2/foo2.b
drwxr-xr-x 398/10 0 Dec 6 11:27:06 1994 bar/
drwxr-xr-x 398/10 0 Dec 6 11:27:00 1994 bar/bar1/
-rw-r--r-- 398/10 11 Dec 6 09:39:58 1994 bar/bar1/bar1.a
-rw-r--r-- 398/10 11 Dec 6 09:39:59 1994 bar/bar1/bar1.b
drwxr-xr-x 398/10 0 Dec 6 11:27:03 1994 bar/bar2/
-rw-r--r-- 398/10 11 Dec 6 09:39:59 1994 bar/bar2/bar2.a
-rw-r--r-- 398/10 11 Dec 6 09:39:59 1994 bar/bar2/bar2.b
===== spam.OSF1 =====
tar: blocksize = 40
drwxr-xr-x 398/0 0 Dec 6 11:26:58 1994 foo
drwxr-xr-x 398/0 0 Dec 6 11:26:53 1994 foo/foo1
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo1/foo1.a
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo1/foo1.b
drwxr-xr-x 398/0 0 Dec 6 11:26:56 1994 foo/foo2
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo2/foo2.a
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo2/foo2.b
drwxr-xr-x 398/0 0 Dec 6 11:27:06 1994 bar
drwxr-xr-x 398/0 0 Dec 6 11:27:00 1994 bar/bar1
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 bar/bar1/bar1.a
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar1/bar1.b
drwxr-xr-x 398/0 0 Dec 6 11:27:03 1994 bar/bar2
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar2/bar2.a
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar2/bar2.b
===== spam.SunOS =====
tar: blocksize = 32
drwxr-xr-x 398/0 0 Dec 6 11:26:58 1994 foo
drwxr-xr-x 398/0 0 Dec 6 11:26:53 1994 foo/foo1
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo1/foo1.a
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo1/foo1.b
drwxr-xr-x 398/0 0 Dec 6 11:26:56 1994 foo/foo2
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo2/foo2.a
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 foo/foo2/foo2.b
drwxr-xr-x 398/0 0 Dec 6 11:27:06 1994 bar
drwxr-xr-x 398/0 0 Dec 6 11:27:00 1994 bar/bar1
-rw-r--r-- 398/0 11 Dec 6 09:39:58 1994 bar/bar1/bar1.a
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar1/bar1.b
drwxr-xr-x 398/0 0 Dec 6 11:27:03 1994 bar/bar2
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar2/bar2.a
-rw-r--r-- 398/0 11 Dec 6 09:39:59 1994 bar/bar2/bar2.b
Also, IRIX tar and SunOS tar can each read the archives which the other made,
but neither can read the one created by OSF/1 (bat==IRIX4, chipmunk==SunOS4):
bat> for x in spam.*; do
bat>> echo ===== $x =====
bat>> tar tvf $x
bat>> done
===== spam.IRIX =====
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/foo1/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/foo2/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/bar1/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/bar2/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
===== spam.OSF1 =====
rwxr-xr-x 398/0 0 Dec 6 11:26 1994 foo
rwxr-xr-x 398/0 0 Dec 6 11:26 1994 foo/foo1
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x 398/0 0 Dec 6 11:26 1994 foo/foo2
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x 398/0 0 Dec 6 11:27 1994 bar
rwxr-xr-x 398/0 0 Dec 6 11:27 1994 bar/bar1
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x 398/0 0 Dec 6 11:27 1994 bar/bar2
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
===== spam.SunOS =====
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/foo1/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x 398/0 dir Dec 6 11:26 1994 foo/foo2/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/bar1/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x 398/0 dir Dec 6 11:27 1994 bar/bar2/
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r-- 398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
chipmunk> for x in spam.*; do
chipmunk>> echo ===== $x =====
chipmunk>> tar tvf $x
chipmunk>> done
===== spam.IRIX =====
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo1/
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo2/
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar1/
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar2/
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
===== spam.OSF1 =====
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo1
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo2
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar1
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar2
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
===== spam.SunOS =====
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo1/
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo1/foo1.b
rwxr-xr-x398/0 0 Dec 6 11:26 1994 foo/foo2/
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 foo/foo2/foo2.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar1/
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar1/bar1.b
rwxr-xr-x398/0 0 Dec 6 11:27 1994 bar/bar2/
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.a
rw-r--r--398/0 11 Dec 6 09:39 1994 bar/bar2/bar2.b
This is a major nuisance, since people often like to do things like
cd /some/where
tar cBf - . | rsh somehost 'cd /else/where; tar xBf -'
and this no longer works for transferring stuff from an OSF/1 V3 system to an
IRIX or SunOS system.
This is still broken in OSF/1 T3.2-1 (Rev. 128.1), by the way.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue
[ singing "It's all right, ma (I'm only bleating)" ]
reply other threads:[~1994-12-06 17:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox