[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] block: Request block status from *file for BDRV
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 2/6] block: Request block status from *file for BDRV_BLOCK_RAW |
Date: |
Thu, 9 Mar 2017 12:38:58 +0100 |
This fixes bdrv_co_get_block_status() for the bdrv_mirror_top block
driver, which must fall through to bs->backing instead of bs->file.
Signed-off-by: Kevin Wolf <address@hidden>
---
block/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/io.c b/block/io.c
index 8f38d46..2709a70 100644
--- a/block/io.c
+++ b/block/io.c
@@ -1760,7 +1760,7 @@ static int64_t coroutine_fn
bdrv_co_get_block_status(BlockDriverState *bs,
if (ret & BDRV_BLOCK_RAW) {
assert(ret & BDRV_BLOCK_OFFSET_VALID);
- ret = bdrv_get_block_status(bs->file->bs, ret >> BDRV_SECTOR_BITS,
+ ret = bdrv_get_block_status(*file, ret >> BDRV_SECTOR_BITS,
*pnum, pnum, file);
goto out;
}
--
1.8.3.1
- [Qemu-devel] [PATCH 0/6] block: More op blocker fixes, Kevin Wolf, 2017/03/09
- [Qemu-devel] [PATCH 2/6] block: Request block status from *file for BDRV_BLOCK_RAW,
Kevin Wolf <=
- [Qemu-devel] [PATCH 1/6] block: Remove check_new_perm from bdrv_replace_child(), Kevin Wolf, 2017/03/09
- [Qemu-devel] [PATCH 3/6] commit: Implement bdrv_commit_top.bdrv_co_get_block_status, Kevin Wolf, 2017/03/09
- [Qemu-devel] [PATCH 5/6] mirror: Implement .bdrv_refresh_filename, Kevin Wolf, 2017/03/09
- [Qemu-devel] [PATCH 4/6] block: Refresh filename after changing backing file, Kevin Wolf, 2017/03/09
- [Qemu-devel] [PATCH 6/6] commit: Implement .bdrv_refresh_filename, Kevin Wolf, 2017/03/09
- Re: [Qemu-devel] [PATCH 0/6] block: More op blocker fixes, Eric Blake, 2017/03/09