-
Notifications
You must be signed in to change notification settings - Fork 192
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 archiving hard links #119
Comments
Makes sense to me! |
I looked into how busybox tar and gnu tar did it. The way is to record in a HashSet the (inode, device number) of every file they have written, if it has hard link count > 1. Then when they see this (inode, device number) a second time, jsut the header is written, with typeflag set to 1 and an appropiate linkname. The appropiate place to set the typeflag should be
So that That would be a big change as some other module-level function like |
@BrianOn99 sounds great to me! |
@alexcrichton Then I will take this issue, while make sure not changing external API. |
See #192, extending |
Tar (at least GNU tar) seems to notice when files being archived are hard links, and stores them as such, extracting as hard links.
I'm not quite sure how this should be implemented (and besides, I don't currently/yet need it) but it should have an option like the symlink option in #117.
The text was updated successfully, but these errors were encountered: