-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Resolve symlinks in cp #3214
Merged
openshift-merge-robot
merged 9 commits into
containers:master
from
mheon:resolve_symlinks_in_cp
May 30, 2019
+91
−9
Merged
Resolve symlinks in cp #3214
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7b7d542
Use securejoin to merge paths in `podman cp`
mheon 49dc185
Pause containers while copying into them
mheon 32fc6b9
Add --pause to podman cp manpage and bash completions
mheon 431e633
Add test to ensure symlinks are resolved in ctr scope
mheon 79990b7
Tolerate non-running containers in paused cp
mheon f456825
Fix bug in e2e tests for podman cp
mheon 48e35f7
We can't pause rootless containers during cp
mheon 57d4093
Error when trying to copy into a running rootless ctr
mheon 5a07311
Fix podman cp tests
mheon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,5 @@ type BuildValues struct { | |
type CpValues struct { | ||
PodmanCommand | ||
Extract bool | ||
Pause bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2388,6 +2388,7 @@ _podman_cp() { | |
--help | ||
-h | ||
--extract | ||
--pause | ||
" | ||
_complete_ "$boolean_options" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is it possible that two processes are cp'ing at the same time and one of them unpause the container while the other process is still resolving the symlinks?
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. That's part of why I was looking to move
cp
into the container.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.
Into libpod, rather