]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: add support for single-major device number allocation scheme
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 13 Dec 2013 15:40:52 +0000 (17:40 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 13 Dec 2013 15:40:52 +0000 (17:40 +0200)
commit8a473bcc9910eea56f3d8841082c54a6c6bbb9fb
tree1b210b8a1f4ac6a86a904b8fdaeb1b07cec333e2
parent784cc894e0bf556e63a9027b6e390b9b0f757fd4
rbd: add support for single-major device number allocation scheme

With the preparatory commits ("rbd: match against wholedisk device
numbers on unmap" and "rbd: match against both major and minor on unmap
on kernels >= 3.14") in, this amounts to chosing to work with new rbd
bus interfaces (/sys/bus/rbd/{add,remove}_single_major) if they are
available, instead of the old ones (/sys/bus/rbd/{add,remove}).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/rbd.cc