qcow2: Add refcount update reason to all callers

Enterprise / Virtualization / QEMU - Kevin Wolf [redhat.com] - 24 June 2013 03:25 UTC

This adds a refcount update reason to all callers of update_refcounts(), so that a follow-up patch can use this information to decide whether clusters that reach a refcount of 0 should be discarded in the image file.

6cfcb9b qcow2: Add refcount update reason to all callers
block/qcow2-cluster.c | 19 +++++++++++------
block/qcow2-refcount.c | 55 ++++++++++++++++++++++++++++++------------------
block/qcow2-snapshot.c | 6 ++++--
block/qcow2.c | 3 ++-
block/qcow2.h | 16 +++++++++++---
5 files changed, 66 insertions(+), 33 deletions(-)

Upstream: git.qemu.org


  • Share