[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] bug in 'file has changed as we read it'
From: |
Michal Svoboda |
Subject: |
[Bug-tar] bug in 'file has changed as we read it' |
Date: |
Thu, 9 Sep 2010 09:27:50 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
When a hardlink to a file is created while tar is processing it, tar
will bail out with 'file has changed as we read it' even if the file did
not in fact change. The attached shell script has a pretty good chance
of demonstrating the bug.
I think the problem is that creating hardlinks updates ctime on the
inode which fools tar into believing that the file has changed. But that
new hardlink does not go into the archive so for all purposes it should
be outside of the what-tar-cares-about domain.
Any ideas how to fix this? I guess you don't want to degrade the ctime
check to a mtime check so to catch changes in permissions etc. Can't
think of some neat way around this right now.
Michal Svoboda
tar-bug.sh
Description: Bourne shell script
- [Bug-tar] bug in 'file has changed as we read it',
Michal Svoboda <=
- Re: [Bug-tar] bug in 'file has changed as we read it', Eric Blake, 2010/09/09
- Re: [Bug-tar] bug in 'file has changed as we read it', Michal Svoboda, 2010/09/10
- Re: [Bug-tar] bug in 'file has changed as we read it', Dustin J. Mitchell, 2010/09/11
- Re: [Bug-tar] bug in 'file has changed as we read it', Michal Svoboda, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Joerg Schilling, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Paul Eggert, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Michal Svoboda, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Paul Eggert, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Michal Svoboda, 2010/09/13
- Re: [Bug-tar] bug in 'file has changed as we read it', Sergey Poznyakoff, 2010/09/13