qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] qemu-img check: unallocated size
@ 2017-05-25 15:26 Vladimir Sementsov-Ogievskiy
  2017-05-25 15:26 ` [Qemu-devel] [PATCH 1/7] block: fix comment for bdrv_get_allocated_file_size() Vladimir Sementsov-Ogievskiy
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2017-05-25 15:26 UTC (permalink / raw)
  To: qemu-devel, qemu-block; +Cc: eblake, armbru, mreitz, kwolf, vsementsov, den

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(-)

-- 
2.11.1

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2017-05-25 19:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 15:26 [Qemu-devel] [PATCH 0/7] qemu-img check: unallocated size Vladimir Sementsov-Ogievskiy
2017-05-25 15:26 ` [Qemu-devel] [PATCH 1/7] block: fix comment for bdrv_get_allocated_file_size() Vladimir Sementsov-Ogievskiy
2017-05-25 16:32   ` Eric Blake
2017-05-25 16:34     ` Eric Blake
2017-05-25 17:03     ` Vladimir Sementsov-Ogievskiy
2017-05-25 17:46       ` Eric Blake
2017-05-25 17:56         ` Vladimir Sementsov-Ogievskiy
2017-05-25 15:26 ` [Qemu-devel] [PATCH 2/7] block: add bdrv_get_format_allocated_size format interface Vladimir Sementsov-Ogievskiy
2017-05-25 17:54   ` Eric Blake
2017-05-25 18:07     ` Vladimir Sementsov-Ogievskiy
2017-05-25 18:19       ` Vladimir Sementsov-Ogievskiy
2017-05-25 19:02         ` Eric Blake
2017-05-25 15:26 ` [Qemu-devel] [PATCH 3/7] qcow2: add .bdrv_get_format_allocated_size Vladimir Sementsov-Ogievskiy
2017-05-25 15:26 ` [Qemu-devel] [PATCH 4/7] common: make get_human_readable_size public Vladimir Sementsov-Ogievskiy
2017-05-25 17:57   ` Eric Blake
2017-05-25 15:26 ` [Qemu-devel] [PATCH 5/7] qemu-img check: add format unallocated size Vladimir Sementsov-Ogievskiy
2017-05-25 17:59   ` Eric Blake
2017-05-25 15:26 ` [Qemu-devel] [PATCH 6/7] qemu-img check: add file-size Vladimir Sementsov-Ogievskiy
2017-05-25 17:59   ` Eric Blake
2017-05-25 15:26 ` [Qemu-devel] [PATCH 7/7] block: rename _get_allocated_file_size() to _get_fs_allocated_size() Vladimir Sementsov-Ogievskiy
2017-05-25 15:34   ` Vladimir Sementsov-Ogievskiy
2017-05-25 18:01   ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).