-
Notifications
You must be signed in to change notification settings - Fork 305
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
Import copy fastpath #1197
Import copy fastpath #1197
Conversation
|
||
if (!_ostree_repo_ensure_loose_objdir_at (self->objects_dir_fd, loose_path_buf, cancellable, error)) | ||
return FALSE; | ||
/* This is yet another variation of glnx_file_copy_at() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused, if it's a bare file, we have to chown
, right? (Well, unless we're running as the id of the source object, which is probably an optimization we should teach to glnx_file_copy_at
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, realized that after submitting. Will fix soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(To clarify we only need to chown for bare repos)
☔ The latest upstream changes (presumably d75316c) made this pull request unmergeable. Please resolve the merge conflicts. |
This fixes up the last of the embarassing bits I saw from the stack trace in: ostreedev#1184 We had a hardlink fast path, but that doesn't apply across devices, which occurs in two notable cases: - Installer ISO with local repo - Tools like pungi that copy the repo to a local snapshot Obviously there are a lot of subtleties here around things like the bare-user-only conversions as well as exactly what data we copy. I think to get better test coverage we may want to add `pull-local --no-hardlink` or so.
cd262a6
to
e9d7273
Compare
bot, retest this please |
☀️ Test successful - status-atomicjenkins |
Splitting the copy fastpath bit out from #1193