[PATCH 0/2] rbd: set rbd device to readonly when we enable unsupported feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please consider this case, when we rbd map an image with layering feature, and enable
exclusive-lock and object-map feature by rbd feature enable command. The any writing
via kernel rbd will make the object-map invalid.

So let's set the rbd device read-only when we detect unsupported feature enabled.

Dongsheng Yang (2):
  rbd: return the features to caller even if there is unsupported bits
  rbd: refresh features and set the disk to readonly if there is
    unsupported bit

 drivers/block/rbd.c | 41 ++++++++++++++++++++---------------------
 1 file changed, 20 insertions(+), 21 deletions(-)

-- 
1.8.3.1


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux