GNU tar - Patches: patch #10432, create: Always check for...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10432: create: Always check for sparseness if '--hole-detection=raw'
Submitter: | Douglas Anderson <dianders> | ||
Submitted: | Sat 27 Jan 2024 12:38:56 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Attached Files
file #55620: create-Always-check-for-sparseness-if-hole-detection.patch added by dianders (1KiB - text/x-patch)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
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.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-01-27 | dianders | Attached File | - | Added create-Always-check-for-sparseness-if-hole-detection.patch, #55620 |
Powered by Savane 3.13-02a9.
Corresponding source code
If we're using 'hole-detection=raw' then we're going to be manually
looking for sparseness in our files. We don't really care about
whether the OS thinks they're sparse, so don't do the check about the
number of blocks the OS thinks the file takes.
Without this change if I use "tar --hole-detection=raw -cf" to tar up
a file that's got lots of zeros (but isn't marked by the OS as
sparse), when I untar the file then it's still not sparse. With this
change then the zeros are correctly transformed into sparseness.