Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for extracting hard links #102

Merged
merged 1 commit into from
Apr 24, 2021
Merged

Support for extracting hard links #102

merged 1 commit into from
Apr 24, 2021

Commits on Apr 23, 2021

  1. support for hardlinks: extract, tree_hash, rewrite

    This adds support for hardlinks, including:
    
    - extracting them by copying the linked file (no hardlink created)
    - tree hashing them as they are extracted
    - rewriting by duplicating the linked file
    
    This only supports hardlinks whose target is a plain file that has
    already been seen in the tarball that is being processed. You cannot
    have a hardlink that appears before the file that is linked. If the
    target of a hardlink is overwritten later, the link copies the current
    version of the file at the time of extraction. Tree hashing and rewrite
    are both consistent with this behavior. It is not supported to extract
    hardlinks where the link involves symlinks, even if the link refers to a
    path that would be a file — the target must be a plain file.
    
    Close #101.
    StefanKarpinski committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    c4b28fb View commit details
    Browse the repository at this point in the history