]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd: before rbd map, warn if the image is already mapped
authorlijing <lijing@gohighsec.com>
Sun, 23 Jul 2017 12:52:40 +0000 (20:52 +0800)
committerlijing <lijing@gohighsec.com>
Wed, 9 Aug 2017 02:19:21 +0000 (10:19 +0800)
commitd6a66fc8f49b5d6241ddec036f26e675ed0db8a1
treec124819574e7a00d614105f504d935ea35b26dd6
parent27c1d62ae96ecc0c34fc0da55a7e529e0f718234
rbd: before rbd map, warn if the image is already mapped

RBD should check if an image is already mapped before mapping one image as serveral devices.

Fixes: http://tracker.ceph.com/issues/20580
Signed-off-by: Jing Li <lijing@gohighsec.com>
src/include/krbd.h
src/krbd.cc
src/tools/rbd/action/Kernel.cc