Repository navigation
Conversation
edcfad4 to
4b2cc87
Compare
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
Thanks. The hard-link handling holds up: I couldn't make extraction write outside the target (links through outside symlinks, Extraction isn't opt-in, so these behaviour changes reach existing callers:
About a third of the main change (path resolution, the directory cache, |
Extract 512 physical links and check their shared inode and timestamp. Exercise a separate 2000-link logical chain through TarFile content resolution without requiring thousands of filesystem links.
|
I've updated the branch in response to your review:
Added regression coverage for absent targets and dependent links, continuation, existing-output preservation, disappearing or non-regular targets, unsafe mapped paths, and permission-denied lookups. Local JDK 17/Linux validation passed: 873 tests, zero failures/errors, 22 skipped, plus build, formatting, and Javadoc. Windows and macOS remain unvalidated. |
Adds streaming TAR hard-link extraction, opt-in preservation, and logical alias contents through archived file sets.
HardLinkFailureMode.COPY_TARGET);FAILandSKIPare also available. Copies use final on-disk target contents and do not share an inode.TarArchiver.setPreserveHardLinks(true)preserves resources with matching identities and compatible metadata. The default remainsfalse; transformed contents, unknown identities, and conflicting metadata produce full entries.TAR creation retains its existing copy-error handling in both preservation modes. Only successfully written entries become hard-link targets. Collections supplied through
addResources()remain caller-owned; the archiver closes internally created collections and the streams and closeable iterators it consumes.Depends on #548, which separates the shared path resolver, directory cache, optional symlink traversal policy, and shared destination-collision behavior for independent review. This branch is rebased onto it. Uses released Plexus IO 3.8.1 and addresses #286.
Local validation on JDK 17/Linux: 873 tests, zero failures/errors, 22 skipped; build, formatting, and Javadoc passed. Windows and macOS execution remain unvalidated.
Documentation