Bug 184413 - --listed-incremental doesn't handle moved directories correctly
Summary: --listed-incremental doesn't handle moved directories correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: tar
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Peter Vrabec
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 187538
TreeView+ depends on / blocked
 
Reported: 2006-03-08 16:36 UTC by Matt Hyclak
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHBA-2006-0336
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-03 21:45:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch extracted from upstream CVS (2.40 KB, patch)
2006-03-21 16:27 UTC, Peter Vrabec
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0336 0 normal SHIPPED_LIVE tar bug fix update 2006-05-03 04:00:00 UTC

Description Matt Hyclak 2006-03-08 16:36:08 UTC
Description of problem:
When using the --listed-incremental option to tar, files directories that have
been moved are not properly kept track of. This has implications when restoring
from multiple archives, specifically discovered in amanda.

Version-Release number of selected component (if applicable):
tar-1.14-9.RHEL4

How reproducible:
Always

Steps to Reproduce:
1. Create a directory with some files in it:

$ mkdir blah
$ mkdir blah/a
$ touch blah/a/foo
$ touch blah/a/bar

2. Create a listed incremental

$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/a: Directory is new
blah/
blah/a/
blah/a/bar
blah/a/foo


3. Rename the directory, re-run the listed incremental
$ mv blah/a/ blah/b
$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/b: Directory is new
blah/
blah/b/

  
Actual results:
The files are not included in the listed incremental

Expected results:
The files are included in the listed incremental

Additional info:
This works with tar 1.15.1. The output is as follows:

$ mkdir blah
$ mkdir blah/a
$ touch blah/a/foo
$ touch blah/a/bar
$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/a: Directory is new
blah/
blah/a/
blah/a/bar
blah/a/foo
$ mv blah/a/ blah/b
$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/b: Directory is new
blah/
blah/b/
blah/b/bar
blah/b/foo

Comment 1 Peter Vrabec 2006-03-21 16:27:48 UTC
Created attachment 126405 [details]
patch extracted from upstream CVS

Comment 7 Red Hat Bugzilla 2006-05-03 21:45:58 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0336.html



Note You need to log in before you can comment on or make changes to this bug.