[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] The --remove-files switch interferes with hardlinking data
From: |
Christopher Neufeld |
Subject: |
Re: [Bug-tar] The --remove-files switch interferes with hardlinking data |
Date: |
Fri, 18 Jun 2004 06:56:41 -0400 |
On Fri, 18 Jun 2004 10:53:31 +0300, Sergey Poznyakoff <address@hidden> said:
> Christopher Neufeld <address@hidden> wrote:
>> If "--remove-files" is supplied to tar, files which are hardlinked together
>> are not recorded as such in the archive.
> Of course they are not: when --remove-files is specified, the files are
> removed right after being archived. Thus, in your second example, after
> archiving `link1', link count of file `link2' is decremented to 1 and
> it is archived as a regular file.
Naturally, and I believe that this is a bug which should be fixed.
To take a slightly more complicated example, if you start with three
hardlinks to a single file, the tar archive produces two copies of the
file, one singly linked, and one doubly linked.
--
Christopher Neufeld Staff Scientist, Levanta, Inc.
http://www.levanta.com/ Simplifying Server Consolidation
address@hidden 613.223.0289 tel