rbd: add ioctl for rbd
authorGuangliang Zhao <guangliang@unitedstack.com>
Tue, 24 Sep 2013 03:25:36 +0000 (11:25 +0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 11 Jun 2014 01:09:24 +0000 (18:09 -0700)
When running the following commands:
    [root@ceph0 mnt]# blockdev --setro /dev/rbd1
    [root@ceph0 mnt]# blockdev --getro /dev/rbd1
    0

The block setro didn't take effect, it is because
the rbd doesn't support ioctl of block driver.

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

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

Simple merge