]> Git Repo - qemu.git/commit
qcow2: Refactor qcow2_free_any_clusters
authorKevin Wolf <[email protected]>
Tue, 27 Mar 2012 11:09:22 +0000 (13:09 +0200)
committerKevin Wolf <[email protected]>
Fri, 20 Apr 2012 13:57:28 +0000 (15:57 +0200)
commitc7a4c37a0f768f7ad50f64414d578436019e1e96
tree01150a854eab361135a3db2aa78cfb318cedecb9
parent8e37f681d58bbe166c20559e77fd55b1cb8e6e4b
qcow2: Refactor qcow2_free_any_clusters

Zero clusters will add another cluster type. Refactor the open-coded
cluster type detection into a switch of QCOW2_CLUSTER_* options so that
the detection is in a single place. This makes it easier to add new
cluster types.

Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2-refcount.c
This page took 0.025363 seconds and 4 git commands to generate.