diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-03-27 13:17:22 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-20 15:57:28 +0200 |
commit | 143550a83ef4eef86a847d00023d148e1f59f743 (patch) | |
tree | 2de0e606772707624172b10e83b85130280d8706 /qemu-img.c | |
parent | c7a4c37a0f768f7ad50f64414d578436019e1e96 (diff) |
qcow2: Simplify count_cow_clusters
count_cow_clusters() tries to reuse existing functions, and all it
achieves is to make things much more complicated than they really are:
Everything needs COW, unless it's a normal cluster with refcount 1.
This patch implements the obvious way of doing this, and by using
qcow2_get_cluster_type() it gets rid of all flag magic.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions