Hi all, sorry for a probably off-topic question, but I hope someone can help me anyway...
I use amanda 2.5.2p1 on several Ubuntu 8.04/64 bit boxes. As I use POSIX ACL's and SELinux attributes, which the standard GNU tar coming with Ubuntu doesn't support, I installed the tar variant from fedora (latest from the tar-1.22-17.fc13.src.rpm). The binary is called from amanda through a wrapper script which adds the '--xattrs' option. Apparently, the binary works fine, but it looks as if it fails to extract single files (or wildcards) if the file name grows too long: amrecover tells me that the file is "Not found in archive". Below are a few examples which illustrate this issue (/opt/bin/setar is the fedora app, tar the "standard" GNU tar). For a short file name, it works just fine: --8<---------------------------------------------------------------- adr...@myserver:~$ /opt/bin/setar --xattrs --create --file ~/TEST.tar --directory /home --one-file-system --sparse --ignore-failed-read --totals ./adress/Desktop/HP-Printer/SVMIBs Total bytes written: 30720 (30KiB, 6.6MiB/s) adr...@myserver:~$ /opt/bin/setar -tf ~/TEST.tar ./adress/Desktop/HP-Printer/SVMIBs/ ./adress/Desktop/HP-Printer/SVMIBs/README.TXT adr...@myserver:~$ /opt/bin/setar --xattrs -xvpf ~/TEST.tar ./adress/Desktop/HP-Printer/SVMIBs/README.TXT ./adress/Desktop/HP-Printer/SVMIBs/README.TXT --8<---------------------------------------------------------------- However, for a long file name, it just fails, although the file *is* listed: --8<---------------------------------------------------------------- adr...@myserver:~$ /opt/bin/setar --xattrs --create --file ~/TEST.tar --directory /home --one-file-system --sparse --ignore-failed-read --totals ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37 Total bytes written: 10240 (10KiB, 1.8MiB/s) adr...@myserver:~$ /opt/bin/setar -tf ~/TEST.tar ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/ ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.index adr...@myserver:~$ /opt/bin/setar --xattrs -xvpf ~/TEST.tar ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history /opt/bin/setar: ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history: Not found in archive /opt/bin/setar: Exiting with failure status due to previous errors --8<---------------------------------------------------------------- Shortening the file name for the extract helps, but extracts the whole folder (which is problematic if I want to restore only one file, but keep the others): --8<---------------------------------------------------------------- adr...@srv-lios2:~$ /opt/bin/setar --xattrs -xvpf ~/TEST.tar ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37 ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/ ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.index --8<---------------------------------------------------------------- Using the standard GNU tar coming with Ubuntu, I can extract the single file (without ACL's, of course): --8<---------------------------------------------------------------- adr...@myserver:~$ tar --create --file ~/TEST.tar --directory /home --one-file-system --sparse --ignore-failed-read --totals ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37 Total bytes written: 10240 (10KiB, 1.2MiB/s) adr...@myserver:~$ tar -tf ~/TEST.tar ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/ ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.index adr...@myserver:~$ tar -xvpf ~/TEST.tar ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history ./adress/Work/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2010/9/37/refactorings.history --8<---------------------------------------------------------------- Does anyone know about the reason (and maybe a workaround) for this issue, or is this something for Fedora support? I don't have a Fedora box, but of course this might also be caused by either the Ubuntu libs and/or be a 64-bit problem. Any insight would be highly appreciated! Thanks in advance, Albrecht.
pgpj59HtnSgwF.pgp
Description: PGP signature