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

krbd: rewrite "already mapped" code #17638

merged 3 commits into from Sep 11, 2017


None yet
2 participants
Copy link

commented Sep 11, 2017

No description provided.

idryomov added some commits Sep 7, 2017

krbd: factor out enumerate_devices()
Signed-off-by: Ilya Dryomov <>
krbd: rewrite "already mapped" code
The "already mapped" code, introduced in commit d6a66fc ("rbd:
before rbd map, warn if the image is already mapped") is broken:
because of a use-after-free on attribute strings, the warning isn't
even printed half the time.

Rewrite making use of udev enumeration filters and fix the interface
while at it.

Signed-off-by: Ilya Dryomov <>
tests: update unmap.t for "already mapped" warning
Signed-off-by: Ilya Dryomov <>
Copy link

left a comment


@dillaman dillaman added the needs-qa label Sep 11, 2017

@dillaman dillaman merged commit b1644fd into ceph:master Sep 11, 2017

5 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
make check (arm64) make check succeeded

@idryomov idryomov deleted the idryomov:wip-rbd-already-mapped-fixes branch Sep 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.