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

feat(iroh-bytes): add copy fallback for Export::TryReference #2233

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

dignifiedquire
Copy link
Contributor

When encountering a failure in renaming, due to cross mount point issues, fallback to copy and delete.

Closes #2229

When encountering a failure in renaming, due to cross mount point issues, fallback to copy and delete.
iroh-bytes/src/store/fs.rs Outdated Show resolved Hide resolved
@dignifiedquire dignifiedquire self-assigned this Apr 26, 2024
@dignifiedquire dignifiedquire added this to the v0.15.0 milestone Apr 26, 2024
tx.send(Ok(())).ok();
}
Err(e) => {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, maybe this whole procedure is long enough to warrant a fn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried, and ran into borrowchk issues and then aborted 😓

@dignifiedquire dignifiedquire added this pull request to the merge queue Apr 29, 2024
@dignifiedquire dignifiedquire changed the title feat(iroh-bytes): copy fallback for Export::TryReference feat(iroh-bytes): add copy fallback for Export::TryReference Apr 29, 2024
Merged via the queue into main with commit ec7de88 Apr 29, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fallback to std::fs::copy in export to make cross-mountpoint export possible
2 participants