[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] TAR creates hard links or duplicated files inside archive
From: |
Live user |
Subject: |
Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option |
Date: |
Tue, 6 Nov 2012 10:06:28 +0100 |
User-agent: |
Kaiten Mail |
Paul Eggert <address@hidden> wrote:
>
>I've read that sentence two or three times, and I'm
>afraid I still don't know what it means. Which sort
>of underscores that we're in a tricky area here.
>
>If I understand you correctly, one objection to your
>approach is that it's not trivial to determine whether
>a file is "an additional hard link with some other
>name". For example, after "mkdir d; touch f; ln f d/f; ln
>-s . dot", the file names "dot/f" and "f" name the same hard
>link, whereas the file names "d/f" and "f" name different
>hard links, but this cannot be determined merely by invoking
>lstat on "d/f", "f", and "dot/f".
I think the best approach is to add the files and soft/hard links to the tar
archive only if exist physically on the filesystem AND if are requested to be
added; and exclude duplicates of the same name and type (file, link) even if
exist physically (which shouldn't be possible) or if are requested to be added
multiple times.
The problem may exist when taring from a pipe files that are generated multiple
times with the same name but have different checksum.
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, (continued)
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Joerg Schilling, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Live user, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Paul Eggert, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Paul Eggert, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Joerg Schilling, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Paul Eggert, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files in sidearchive when using -T option, Marek Kielar, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files insidearchive when using -T option, Paul Eggert, 2012/11/05
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option,
Live user <=
- Re: [Bug-tar] TAR creates hard links or duplicated files in side archive when using -T option, Marek Kielar, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Paul Eggert, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Joerg Schilling, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Live user, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Joerg Schilling, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Tim Kientzle, 2012/11/07
- Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option, Live user, 2012/11/02