[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v7 03/15] qcow2: Assign bs->file->bs to file in qcow
From: |
Fam Zheng |
Subject: |
[Qemu-block] [PATCH v7 03/15] qcow2: Assign bs->file->bs to file in qcow2_co_get_block_status |
Date: |
Fri, 22 Jan 2016 11:06:24 +0800 |
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
---
block/qcow2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/qcow2.c b/block/qcow2.c
index d4ea6b4..8babecd 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1349,6 +1349,7 @@ static int64_t coroutine_fn
qcow2_co_get_block_status(BlockDriverState *bs,
!s->cipher) {
index_in_cluster = sector_num & (s->cluster_sectors - 1);
cluster_offset |= (index_in_cluster << BDRV_SECTOR_BITS);
+ *file = bs->file->bs;
status |= BDRV_BLOCK_OFFSET_VALID | cluster_offset;
}
if (ret == QCOW2_CLUSTER_ZERO) {
--
2.4.3
- [Qemu-block] [PATCH v7 00/15] qemu-img map: Allow driver to return file of the allocated block, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 01/15] block: Add "file" output parameter to block status query functions, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 02/15] qcow: Assign bs->file->bs to file in qcow_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 03/15] qcow2: Assign bs->file->bs to file in qcow2_co_get_block_status,
Fam Zheng <=
- [Qemu-block] [PATCH v7 04/15] raw: Assign bs to file in raw_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 05/15] iscsi: Assign bs to file in iscsi_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 06/15] parallels: Assign bs->file->bs to file in parallels_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 07/15] qed: Assign bs->file->bs to file in bdrv_qed_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 08/15] sheepdog: Assign bs to file in sd_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 09/15] vdi: Assign bs->file->bs to file in vdi_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 10/15] vpc: Assign bs->file->bs to file in vpc_co_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 11/15] vmdk: Return extent's file in bdrv_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 13/15] qemu-img: In "map", use the returned "file" from bdrv_get_block_status, Fam Zheng, 2016/01/21
- [Qemu-block] [PATCH v7 12/15] block: Use returned *file in bdrv_co_get_block_status, Fam Zheng, 2016/01/21