[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] bug in 'file has changed as we read it'
From: |
Paul Eggert |
Subject: |
Re: [Bug-tar] bug in 'file has changed as we read it' |
Date: |
Mon, 13 Sep 2010 12:30:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7 |
On 09/13/10 10:35, Michal Svoboda wrote:
> Paul Eggert wrote:
>> There are applications where it's important that the metadata be
>> consistent with the data: for example, it could be that the data
>> contain time stamps, which should always predate the ctime, and
>> if the tar image contains data with timestamps after the ctime,
>> then the tar image is inconsistent.
>
> How can this happen without modifying the data?
My scenario was assuming that some other process modified the data.
But that is a scenario of concern. User processes can set the mtime
after modifying the data (this is normal, for applications such as
cp -p) so tar cannot trust the mtime here. In contrast, ctime is
more trustable: in most environments user processes can't set the
ctime to arbitrary values. That is why tar should use ctime here.
- [Bug-tar] bug in 'file has changed as we read it', Michal Svoboda, 2010/09/09
- 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 <=
- 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