bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Listed incremental fails with new symbolic link


From: Peter Kronheimer
Subject: Re: [Bug-tar] Listed incremental fails with new symbolic link
Date: Sat, 30 Sep 2006 10:34:29 -0400
User-agent: Thunderbird 1.5.0.7 (X11/20060922)

Peter Kronheimer <address@hidden> wrote:
Sergey Poznyakoff wrote:
Peter Kronheimer <address@hidden> wrote:

If an existing non-empty directory is deleted and then replaced by a
symbolic link (with the same name) pointing to a new target, then the
listed-incremental mechanism fails, at least with version 1.15.1.

The listed-incremental mechanism is (mainly) based on comparing mtimes
of the files in the previous backup with the mtimes of the existing files,
therefore the proposed testcase is destined to fail at about 50% of
runs. Tar will be able to catch the following change:

rm -r testbackup/bar
mkdir bar-target
ln -s $HOME/tmp/bar-target testbackup/bar

only if enough time has elapsed between  rm and ln for the mtime of
testbackup to change. So, its a toss-up depending on the underlying
filesystem timestamp resolution.

On my box, 100 runs of the supplied script produced 54 failures and
46 successes.  Inserting a `sleep 1' between `rm' and `mkdir' makes the
testcase produce 100% of successes.
>
Have there been relevant changes in gnu tar, since version 1.15.1, which might account for this?

To answer my own question: the script runs without error and with the expected result with tar 1.15.91.

Many thanks again.




reply via email to

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