Fix daemon.getSourceMount() for /#37031
Merged
thaJeztah merged 1 commit intomoby:masterfrom May 11, 2018
Merged
Conversation
A recent optimization in getSourceMount() made it return an error in case when the found mount point is "/". This prevented bind-mounted volumes from working in such cases. A (rather trivial but adeqate) unit test case is added. Fixes: 871c957 ("getSourceMount(): simplify") Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Contributor
Author
|
CI failure on z (logs here) appears to be unrelated; restarted. @selansen can you PTAL? |
Contributor
Author
|
CI failure on powerpc (logs here) looks unrelated; restarted |
Codecov Report
@@ Coverage Diff @@
## master #37031 +/- ##
==========================================
+ Coverage 35.1% 35.36% +0.25%
==========================================
Files 615 615
Lines 45793 45791 -2
==========================================
+ Hits 16077 16193 +116
+ Misses 27606 27450 -156
- Partials 2110 2148 +38 |
1 task
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A recent optimization (#36091) in getSourceMount() made it return an error in case when the source mount is "/". This prevented bind-mounted volumes from working in such cases.
Fixes: 871c957 ("getSourceMount(): simplify")
- What I did
Fixed
getSourceMount()which I broke earlier- How I did it
By removing the unnecessary and wrong check from the code
- How to verify it
I have added a unit test
- Description for the changelog
fix bind mounts not working in some cases
- A picture of a cute animal (not mandatory but encouraged)
