]> Pileus Git - ~andy/linux/commit
rbd: set up devices only for mapped images
authorAlex Elder <elder@inktank.com>
Mon, 29 Apr 2013 04:32:34 +0000 (23:32 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:20:07 +0000 (21:20 -0700)
commitb536f69a3a589113992c32982bf2981c8225c9da
tree389599582a07f0e268a0ad4a755027aa1c8319fa
parent8ad42cd0c002fa278f6d0135e22fcb188e400a28
rbd: set up devices only for mapped images

Stop setting up Linux devices during the image probe operation.
Instead, set up the devices as a separate step after the image
probe, in rbd_add().

A consequence of this is that only mapped images get devices
assigned to them, which is pretty sweet.

This resolves:
    http://tracker.ceph.com/issues/4774

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c