qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/5] qcow2: add fragmentation and compression inf


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH v2 0/5] qcow2: add fragmentation and compression info support
Date: Wed, 6 Feb 2013 11:58:33 +0100

This series adds fragmentation info support to qcow2 and then adds compression
info.  Previously only QED supported fragmentation info.  Note that
fragmentation info only covers the current image, internal snapshots are not
included.

The new BlockFragInfo.compressed field contains the number of compressed
clusters.  qemu-img check now reports the percentage of compressed clusters out
of all allocated clusters.  This can be used to decide when to recompress an
image or to double-check that an image is indeed compressed.

qemu-iotests was to handle the new qemu-img check output.

I have tested qcow2 images both compressed and uncompressed.

v2:
 * Fix indentation on modified block/qcow2-refcount.c lines [eblake]
 * Change qemu-img check output from just "compressed" to "compressed clusters" 
[eblake]
 * Improve grep and sed usage in common.rc [eblake]
 * Introduce sector_offset local variable for & ~511 [eblake]
 * Improve nb_csectors rounding down explanation in comment [eblake]

Stefan Hajnoczi (5):
  qcow2: introduce check_refcounts_l1/l2() flags
  qcow2: record fragmentation statistics during check
  qemu-img: avoid excessive BlockFragInfo line length
  qemu-img: add compressed clusters to BlockFragInfo
  qcow2: support compressed clusters in BlockFragInfo

 block/qcow2-refcount.c       | 51 ++++++++++++++++++++++++++++++++++++--------
 include/block/block.h        |  1 +
 qemu-img.c                   | 13 ++++++-----
 tests/qemu-iotests/026       |  6 +++---
 tests/qemu-iotests/036       |  2 +-
 tests/qemu-iotests/039       |  2 +-
 tests/qemu-iotests/044.out   |  1 +
 tests/qemu-iotests/common.rc |  6 +++---
 8 files changed, 60 insertions(+), 22 deletions(-)

-- 
1.8.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]