Repository navigation
devmapper: get rid of unused device id argument in unregisterDevice() - #28500
Merged
Merged
Conversation
There is no need to populate device id during unregisterDevice(). Nobody makes use of this information. We just need to remove file associated with device and that file is looked up using the hash and not the device id which is used for thin pool operations. So get rid of device id argument to unregisterDevice(). Signed-off-by: Vivek Goyal <[email protected]>
Contributor
Author
|
cc @thaJeztah |
Member
liusdu
pushed a commit
to liusdu/moby
that referenced
this pull request
Oct 30, 2017
There is no need to populate device id during unregisterDevice(). Nobody makes use of this information. We just need to remove file associated with device and that file is looked up using the hash and not the device id which is used for thin pool operations. So get rid of device id argument to unregisterDevice(). Signed-off-by: Vivek Goyal <[email protected]> Signed-off-by: Wentao Zhang <[email protected]> Cherry-picked from moby#28500
liusdu
pushed a commit
to liusdu/moby
that referenced
this pull request
Oct 30, 2017
Cherry pick devmapper relative commits from master branch Merge 5 commits: <a href="/docker/docker/commit/4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-original="4f0017b9" data-project="7713" data-commit="4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-reference-type="commit" title="Commit: Vivek Goyal - devmapper: Provide a knob dm.xfs_nospace_max_retries" class="gfm gfm-commit">4f0017b9</a> <a href="moby#26212" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/26212</a><br> <a href="/docker/docker/commit/55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-original="55a9b812" data-project="7713" data-commit="55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-reference-type="commit" title="Commit: Vivek Goyal - Export Mininum Thin Pool Free Space through docker info" class="gfm gfm-commit">55a9b812</a> <a href="moby#21945" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/21945</a><br> 288f933 <a href="moby#28500" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/28500</a><br> d4a2bcc moby#23974 6cc55dd moby#26378 41c6083 moby#26918 Signed-off-by: Wentao Zhang <a href="mailto:[email protected]">[email protected]</a> See merge request docker/docker!281
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.
There is no need to populate device id during unregisterDevice(). Nobody
makes use of this information. We just need to remove file associated
with device and that file is looked up using the hash and not the
device id which is used for thin pool operations.
So get rid of device id argument to unregisterDevice().
Signed-off-by: Vivek Goyal [email protected]