[126] in Info-AFS_Redistribution

home help back first fref pref prev next nref lref last post

Re: Tar using AFS and AIX

daemon@ATHENA.MIT.EDU (Bob Andrews)
Wed May 22 17:13:12 1991

From: bob@ibmpa.awdpa.ibm.com (Bob Andrews)
To: tpersky+@alw.nih.gov (Ted Persky)
Date: Wed, 22 May 91 12:57:51 PDT
Cc: Info-AFS@transarc.com, kgorlen@alw.nih.gov, jip@alw.nih.gov
In-Reply-To: <McCfPqe0ts1sAXkWde@alw.nih.gov>; from "Ted Persky" at May 22, 91 2:22 pm

Ted Persky writes:
> To: Info-AFS@transarc.com
> Subject: Tar using AFS and AIX
> Cc: Keith Gorlen <kgorlen@alw.nih.gov>, john powell <jip@alw.nih.gov>
> 
> Hi,
> 
> I have been trying to use the "tar" command on AIX 3003 of the IBM
> RS/6000 to copy a file system from the local disk of my workstation
> into the file space which we have under the Andrew File System (AFS).
> According to the documentation provided with "tar", the "-s" option
> tells "tar" that during the extract procedure, if there exists a
> hard link to a file that you cannot create, attempt to create a
> symbolic link instead.  This is especially important with AFS,
> since AFS prohibits hard links which span directories.
> 

I added the "-s" option to tar on IBM's 4.3/RT (rt_aos4) system years
ago so that stuff could be "tar'red" into AFS.  When the spec for AIX
3.1 was being put together, "-s" was picked up, but the code wasn't
picked up; it was re-implemented.  The problem is that it wasn't done
right; you need to change the name of what you are linking to if the
name is a relative path when you switch from a hard to a symbolic link.

I reported the bug some time ago, and it was recently fixed.  I believe
the fix is going into AIX 3.2.  It turns out that my implementation
written years ago was also wrong in some cases.  The AIX one has been
re-written (and hopefully we got it right this time!).

For now, if you have an rt_aos4 system, try using tar there to
write into AFS.  You could also pick up the rt_aos4 tar.c file and
compile it on rs_aix31 (but you'll be missing extra functionality that
the rs_aix31 tar has).


			Bob

home help back first fref pref prev next nref lref last post