diff options
author | Jeff Cody <jcody@redhat.com> | 2017-04-07 16:55:28 -0400 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2017-04-24 15:09:33 -0400 |
commit | 93ed524e3de732f70b3b042e3c56bc4ed719498d (patch) | |
tree | ae0b1c9638e222eed5e5d520dfd97edc8dc8b7be | |
parent | d6fcdf06d9fc7d72151cc2069dc5c1adf5c21707 (diff) |
block: code movement
Move bdrv_is_read_only() up with its friends.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Message-id: 73b2399459760c32506f9407efb9dddb3a2789de.1491597120.git.jcody@redhat.com
-rw-r--r-- | block.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -192,6 +192,11 @@ void path_combine(char *dest, int dest_size, } } +bool bdrv_is_read_only(BlockDriverState *bs) +{ + return bs->read_only; +} + int bdrv_set_read_only(BlockDriverState *bs, bool read_only, Error **errp) { /* Do not set read_only if copy_on_read is enabled */ @@ -3375,11 +3380,6 @@ void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr) *nb_sectors_ptr = nb_sectors < 0 ? 0 : nb_sectors; } -bool bdrv_is_read_only(BlockDriverState *bs) -{ - return bs->read_only; -} - bool bdrv_is_sg(BlockDriverState *bs) { return bs->sg; |