diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2019-11-12 19:50:55 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-11-25 11:44:03 +0100 |
commit | c1b6205730ef009868fbb68cf4755b20055fcc6c (patch) | |
tree | 4e939119a3c73f76a5fb99af5cce6511d9fa0b8b /drivers/dma/amba-pl08x.c | |
parent | b948ad78971fb2c6ed6b53b0edbdd720cfe08d9f (diff) | |
download | linux-c1b6205730ef009868fbb68cf4755b20055fcc6c.tar.bz2 |
rbd: disallow read-write partitions on images mapped read-only
If an image is mapped read-only, don't allow setting its partition(s)
to read-write via BLKROSET: with the previous patch all writes to such
images are failed anyway.
If an image is mapped read-write, its partition(s) can be set to
read-only (and back to read-write) as before. Note that at the rbd
level the image will remain writeable: anything sent down by the block
layer will be executed, including any write from internal kernel users.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
0 files changed, 0 insertions, 0 deletions