Skip to content

Add qemu-img subcommand to dump file metadata

Paolo Bonzini qemu-devel 5 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest21 patches 7 repliesApplied
  2. v421 patches 9 repliesSuperseded
  3. v319 patches 36 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v217 patches46 repliesApplied
v117 patches30 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/21cow: make reads go at a decent speedblock/cow.c+32 -220 replies
2/21cow: make writes go at a less indecent speedblock/cow.c+16 -30 replies
3/21cow: do not call bdrv_co_is_allocatedblock/cow.c+1 -10 replies
4/21block: keep bs->total_sectors up to date even for growable block devicesblock.c+4 -10 replies
5/21block: make bdrv_co_is_allocated staticblock.c block/backup.c block/raw_bsd.c +2 more+20 -160 replies
6/21block: do not use ->total_sectors in bdrv_co_is_allocatedblock.c+7 -10 replies
7/21block: remove bdrv_is_allocated_above/bdrv_co_is_allocated_above distinctionblock.c block/commit.c block/mirror.c +2 more+11 -530 replies
8/21block: expect errors from bdrv_co_is_allocatedblock.c block/cow.c block/qcow2.c +3 more+30 -90 replies
9/21qemu-img: always probe the input image for allocated sectorsqemu-img.c+19 -210 replies
10/21block: make bdrv_has_zero_init return false for copy-on-write-imagesblock.c qemu-img.c+6 -80 replies
11/21block: introduce bdrv_get_block_status APIblock.c block/cow.c block/qcow.c +10 more+61 -470 replies
12/21block: define get_block_status return valueblock.c include/block/block.h+34 -26 replies
13/21block: return get_block_status data and flags for formatsblock/cow.c block/qcow.c block/qcow2.c +5 more+94 -190 replies
14/21block: use bdrv_has_zero_init to return BDRV_BLOCK_ZEROblock.c+10 -10 replies
15/21block: return BDRV_BLOCK_ZERO past end of backing fileblock.c+10 -20 replies
16/21qemu-img: add a "map" subcommandqemu-img-cmds.hx qemu-img.c+198 -00 replies
17/21docs, qapi: document qemu-img mapqapi-schema.json qemu-img.texi+84 -00 replies
18/21raw-posix: return get_block_status data and flagsblock/raw-posix.c+10 -70 replies
19/21raw-posix: report unwritten extents as zeroblock/raw-posix.c+3 -00 replies
20/21block: add default get_block_status implementation for protocolsblock.c+5 -10 replies
21/21block: look for zero blocks in bs->fileblock.c+15 -10 replies

Reviews trailers per patch

16 of 21 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/21R-b
2/21R-b
3/21R-b
4/21
5/21R-b
6/21
7/21R-b
8/21R-b
9/21R-b
10/21R-b
11/21R-b
12/21R-b
13/21R-b
14/21R-b
15/21
16/21
17/21
18/21R-b
19/21R-b
20/21R-b
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 00/21] Add qemu-img subcommand to dump file metadata

v4->v5: no change except for context and correcting the "Since: 1.6"
in qapi-schema.json

Paolo Bonzini (21):
cow: make reads go at a decent speed
cow: make writes go at a less indecent speed
cow: do not call bdrv_co_is_allocated
block: keep bs->total_sectors up to date even for growable block
devices
block: make bdrv_co_is_allocated static
block: do not use ->total_sectors in bdrv_co_is_allocated
block: remove bdrv_is_allocated_above/bdrv_co_is_allocated_above
distinction
block: expect errors from bdrv_co_is_allocated
qemu-img: always probe the input image for allocated sectors
block: make bdrv_has_zero_init return false for copy-on-write-images
block: introduce bdrv_get_block_status API
block: define get_block_status return value
block: return get_block_status data and flags for formats
block: use bdrv_has_zero_init to return BDRV_BLOCK_ZERO
block: return BDRV_BLOCK_ZERO past end of backing file
qemu-img: add a "map" subcommand
docs, qapi: document qemu-img map
raw-posix: return get_block_status data and flags
raw-posix: report unwritten extents as zero
block: add default get_block_status implementation for protocols
block: look for zero blocks in bs->file

 block.c                   | 174 +++++++++++++++++++--------------
 block/backup.c            |   4 +-
 block/commit.c            |   6 +-
 block/cow.c               |  91 +++++++++++++-----
 block/mirror.c            |   4 +-
 block/qcow.c              |  13 ++-
 block/qcow2.c             |  24 +++--
 block/qed.c               |  39 ++++++--
 block/raw-posix.c         |  24 +++--
 block/raw_bsd.c           |  10 +-
 block/sheepdog.c          |  14 +--
 block/stream.c            |  10 +-
 block/vdi.c               |  17 +++-
 block/vmdk.c              |  23 ++++-
 block/vvfat.c             |  15 +--
 include/block/block.h     |  34 +++++--
 include/block/block_int.h |   2 +-
 qapi-schema.json          |  29 ++++++
 qemu-img-cmds.hx          |   6 ++
 qemu-img.c                | 239 +++++++++++++++++++++++++++++++++++++++++-----
 qemu-img.texi             |  55 +++++++++++
 qemu-io-cmds.c            |   4 +
 22 files changed, 646 insertions(+), 191 deletions(-)
Signature · 1 line
1.8.3.1