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)
commit131fd9f6fc89ad2cc993f80664d18ca49d6f8483
treea5dd9b68bb868f62229f159fd64f3c4322b21edc
parent4e217b5dc87042b0fa52b11f491c4ded1863823a
rbd: add ioctl for rbd

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