block: add bdrv_set_read_only() helper function
We have a helper wrapper for checking for the BDS read_only flag, add a helper wrapper to set the read_only flag as well. Reviewed-by:Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Jeff Cody <jcody@redhat.com> Reviewed-by:
John Snow <jsnow@redhat.com> Message-id: 9b18972d05f5fa2ac16c014f0af98d680553048d.1491597120.git.jcody@redhat.com
Showing
- block.c 5 additions, 0 deletionsblock.c
- block/bochs.c 1 addition, 1 deletionblock/bochs.c
- block/cloop.c 1 addition, 1 deletionblock/cloop.c
- block/dmg.c 1 addition, 1 deletionblock/dmg.c
- block/rbd.c 1 addition, 1 deletionblock/rbd.c
- block/vvfat.c 2 additions, 2 deletionsblock/vvfat.c
- include/block/block.h 1 addition, 0 deletionsinclude/block/block.h
Loading
Please register or sign in to comment