Re: [Bug-tar] tar fails to preserve hard links with --remove-files

2009-07-31 Thread Andreas Dilger
On Jul 30, 2009 04:57 -0700, Carl Worth wrote: On Sun, 13 Apr 2003 15:45:27 -0400, Theodore Ts'o ty...@mit.edu wrote: I'm pretty sure, by the way, that the problem is that tar is keying off of the st_nlink to decide whether or not to do hard link processing as an optimization. When

Re: [Bug-tar] tar fails to preserve hard links with --remove-files

2009-07-30 Thread Sergey Poznyakoff
Carl Worth cwo...@cworth.org ha escrit: A user of Debian noticed that tar (1.22) does not always preserve hard links when creating an archive with the --remove-files option. Thanks for reporting. On Sun, 13 Apr 2003 15:45:27 -0400, Theodore Ts'o ty...@mit.edu wrote: I'm pretty sure, by the

Re: [Bug-tar] tar fails to preserve hard links with --remove-files

2009-07-30 Thread Carl Worth
On Thu, 2009-07-30 at 23:52 +0300, Sergey Poznyakoff wrote: Thanks for reporting. Thank you, Sergey. And thanks for the quick reply. This one is mostly OK, except that I don't see any reason to test the remove_files_option value in file_count_links. This will unnecessarily inflate the