[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v4 12/14] qemu-img: In "map", use the returned "file
From: |
Fam Zheng |
Subject: |
[Qemu-block] [PATCH v4 12/14] qemu-img: In "map", use the returned "file" from bdrv_get_block_status |
Date: |
Thu, 24 Dec 2015 13:50:23 +0800 |
Now all drivers should return a correct "file", we can make use of it,
even with the recursion into backing chain above.
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
---
qemu-img.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-img.c b/qemu-img.c
index ac4eee5..a35edee 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -2225,7 +2225,7 @@ static int get_block_status(BlockDriverState *bs, int64_t
sector_num,
e->flags = ret & ~BDRV_BLOCK_OFFSET_MASK;
e->offset = ret & BDRV_BLOCK_OFFSET_MASK;
e->depth = depth;
- e->bs = bs;
+ e->bs = file;
return 0;
}
--
2.4.3
- [Qemu-block] [PATCH v4 01/14] block: Add "file" output parameter to block status query functions, (continued)
- [Qemu-block] [PATCH v4 01/14] block: Add "file" output parameter to block status query functions, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 02/14] qcow: Assign bs->file->bs to file in qcow_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 03/14] qcow2: Assign bs->file->bs to file in qcow2_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 05/14] iscsi: Assign bs to file in iscsi_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 04/14] raw: Assign bs to file in raw_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 06/14] parallels: Assign bs->file->bs to file in parallels_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 07/14] qed: Assign bs->file->bs to file in bdrv_qed_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 08/14] sheepdog: Assign bs to file in sd_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 09/14] vdi: Assign bs->file->bs to file in vdi_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 10/14] vpc: Assign bs->file->bs to file in vpc_co_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 12/14] qemu-img: In "map", use the returned "file" from bdrv_get_block_status,
Fam Zheng <=
- [Qemu-block] [PATCH v4 11/14] vmdk: Return extent's file in bdrv_get_block_status, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 13/14] qemu-img: Make MapEntry a QAPI struct, Fam Zheng, 2015/12/24
- [Qemu-block] [PATCH v4 14/14] iotests: Add "qemu-img map" test for VMDK extents, Fam Zheng, 2015/12/24