aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-02-07 17:15:02 +0100
committerKevin Wolf <kwolf@redhat.com>2013-02-22 21:21:09 +0100
commitfba31bae2d776fb4134186a830a252523df7933f (patch)
tree1f86478145230a7e3fb53a9df13f9f24e5142056 /qemu-img.c
parent801f70445293ec8ed2d78fd92313c2f71fa48ac9 (diff)
qcow2: record fragmentation statistics during check
The qemu-img check command can display fragmentation statistics: * Total number of clusters in virtual disk * Number of allocated clusters * Number of fragmented clusters This patch adds fragmentation statistics support to qcow2. Compressed and normal clusters count as allocated. Zero clusters are not counted as allocated unless their L2 entry has a non-zero offset (e.g. preallocation). Only the current L1 table counts towards the statistics - snapshots are ignored. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions