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

safe_unlink (was: truncate_and_unlink) #6301

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Feb 15, 2022

the previous implementation caused collateral damage on hardlink-copies of a repository,
see: #6286

the previous implementation caused collateral damage on hardlink-copies of a repository,
see: borgbackup#6286
@ThomasWaldmann
Copy link
Member Author

@enkore @textshell can you please review?

@ThomasWaldmann
Copy link
Member Author

def truncate_and_unlink(path):

maybe easier to see there than in the diff.

@ThomasWaldmann ThomasWaldmann changed the title safer truncate_and_unlink implementation safe_unlink (was: truncate_and_unlink) Feb 15, 2022
@ThomasWaldmann ThomasWaldmann added this to the 1.1.18 milestone Feb 15, 2022
it usually does not truncate any more,
only under "disk full" circumstances and only if there is only one hardlink.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants