Skip to content

qemu-img check: unallocated size

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7block: fix comment for bdrv_get_allocated_file_size()block.c+2 -25 replies
2/7block: add bdrv_get_format_allocated_size format interfaceblock.c include/block/block.h include/block/block_int.h+17 -04 replies
3/7qcow2: add .bdrv_get_format_allocated_sizeblock/qcow2-refcount.c block/qcow2.c block/qcow2.h+65 -00 replies
4/7common: make get_human_readable_size publicblock/qapi.c include/qemu-common.h+3 -11 reply
5/7qemu-img check: add format unallocated sizeqapi/block-core.json qemu-img.c+21 -11 reply
6/7qemu-img check: add file-sizeqapi/block-core.json qemu-img.c+9 -41 reply
7/7block: rename _get_allocated_file_size() to _get_fs_allocated_size()block.c block/file-posix.c block/file-win32.c +7 more+31 -372 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] qemu-img check: unallocated size

Hi all!

These small series is about "Format unallocated size" section for qemu-img check. It is needed to know, how many holes we have in qcow2, when underlying raw file is on non-sparse file-system. In this case actual-size from qemu-img info will not take holes into account. Also, qemu-img check 'allocated' stat is not appropriate too, as it is about guest clusters, so metadata and snapshots are not accounted.

Qemu-img check is chosen instead of qemu-img info, to not slow down qemu-img info by loading all L2 tables (Kevin)

Vladimir Sementsov-Ogievskiy (7):
block: fix comment for bdrv_get_allocated_file_size()
block: add bdrv_get_format_allocated_size format interface
qcow2: add .bdrv_get_format_allocated_size
common: make get_human_readable_size public
qemu-img check: add format unallocated size
qemu-img check: add file-size
block: rename _get_allocated_file_size() to _get_fs_allocated_size()

 block.c                   | 27 ++++++++++++++++-----
 block/file-posix.c        | 14 ++++-------
 block/file-win32.c        |  8 +++----
 block/gluster.c           |  8 +++----
 block/nfs.c               |  8 +++----
 block/qapi.c              |  4 ++--
 block/qcow2-refcount.c    | 61 +++++++++++++++++++++++++++++++++++++++++++++++
 block/qcow2.c             |  2 ++
 block/qcow2.h             |  2 ++
 block/sheepdog.c          |  8 +++----
 block/vmdk.c              |  8 +++----
 include/block/block.h     |  3 ++-
 include/block/block_int.h |  3 ++-
 include/qemu-common.h     |  2 ++
 qapi/block-core.json      |  3 ++-
 qemu-img.c                | 24 +++++++++++++++++++
 16 files changed, 144 insertions(+), 41 deletions(-)
Signature · 1 line
2.11.1