[MacPorts] #67336: BSD tar can create corrupted archives on Catalina, Big Sur, Monterey, Ventura
MacPorts
noreply at macports.org
Fri Oct 4 19:31:02 UTC 2024
#67336: BSD tar can create corrupted archives on Catalina, Big Sur, Monterey,
Ventura
-------------------------+-------------------------------------------------
Reporter: catap | Owner: (none)
Type: defect | Status: new
Priority: High | Milestone:
Component: base | Version: 2.8.1
Resolution: | Keywords: catalina, bigsur, monterey,
Port: | ventura, sonoma, sequoia
-------------------------+-------------------------------------------------
Comment (by jmroot):
OK, so things to try in no particular order:
* ask the OS if there are holes in the files the same way that bsdtar
does, and only apply workarounds if it says yes
* fsync on the files
* fcntl F_FULLFSYNC
* fcntl F_NOCACHE
* add `--no-read-sparse` when supported
Do we have any simplified test case that can be used to figure out which
of these actually helps?
--
Ticket URL: <https://trac.macports.org/ticket/67336#comment:38>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list