bug-tar
[Top][All Lists]
Advanced

[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: Joerg Schilling
Subject: Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option
Date: Mon, 5 Nov 2012 15:56:20 +0100
User-agent: nail 11.22 3/20/05

Paul Eggert <address@hidden> wrote:

> On 11/05/2012 01:55 AM, Joerg Schilling wrote:
> > the indication for a hard link is a link count > 1.
>
> No, it's typical to say that the link count counts
> the number of hard links.  For example, the Wikipedia
> entry for "Hard link" says that a hard link is
> "a directory entry that associates a name with a file on a file system",
> and this is consistent with the typical interpretation.

I was talking about the relation to a tar archive, not about the correct 
interpretation inside a file system.

So let me be more precise: The indication for the existence of an additional
hard link to a file is a link count > 1.

This is why it seems to be more consistent not to archive things unter the TAR 
file type "hard link" in case the link count of the object is 1 only.

BTW: what do you do if the file type in question is a symlink?

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]