diff options
author | Markus Armbruster <armbru@redhat.com> | 2012-06-05 16:49:24 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-06-15 14:03:43 +0200 |
commit | c8433287830f342d8ee35d206afdf6cc6c5fe35a (patch) | |
tree | 6a3c5f40157c23fcd0ffc537313531f80ca1e495 /block.c | |
parent | b75a02829dde98723dfe16fa098338cb267b28b9 (diff) |
block: New bdrv_get_flags()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2466,6 +2466,11 @@ const char *bdrv_get_device_name(BlockDriverState *bs) return bs->device_name; } +int bdrv_get_flags(BlockDriverState *bs) +{ + return bs->open_flags; +} + void bdrv_flush_all(void) { BlockDriverState *bs; |