patchGNU tar - Patches: patch #10516, --dereference should not remove...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10516: --dereference should not remove duplicates

Submitter:  semenzato <semenzato>
Submitted:  Tue 08 Apr 2025 09:20:22 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Wed 09 Apr 2025 05:14:34 PM UTC, comment #1: 

I mail have failed to post my email.  It's -email is unavailable- or, in case I get laid off, -email is unavailable- .

semenzato <semenzato>
Tue 08 Apr 2025 09:20:22 PM UTC, original submission:  

When using the `--dereference` flag, if two files a/aa and b/bb are symlinks to the same file c/cc, the created archive includes a file a/aa with the original content of c/cc, and a hard link from b/bb to a/aa (i.e the result of the operation `ln a/aa b/bb`).  This is  a useful optimization, but the resulting archive will fail to extract if a/ and b/ are in different filesystems (cross-device link error).

There are various ways of resolving this and keeping both behaviors.  There could be a `--convert-crossdevice-hardlinks` extraction flag that replaces a hard link with a symlink when the extraction would otherwise fail; or `--convert-hardlinks` to always replace.

I am not sure what the default creation-time behavior should be (duplication vs. hard link vs. soft link), and whether it should be under flag control.

semenzato <semenzato>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by semenzato (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.15-f85b.
    Corresponding source code