diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-12-07 18:08:47 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-12-13 15:37:59 +0100 |
commit | 280d373579558f73a8b70e329d9a6206933d3809 (patch) | |
tree | 7cec4982418e7355189da1158cbddc6f71d44eb6 /block/qcow2.h | |
parent | f50f88b9fea09fef12cc293126cf45dcf0ef600b (diff) | |
download | qemu-280d373579558f73a8b70e329d9a6206933d3809.zip qemu-280d373579558f73a8b70e329d9a6206933d3809.tar.gz qemu-280d373579558f73a8b70e329d9a6206933d3809.tar.bz2 |
qcow2: Enable dirty flag in qcow2_alloc_cluster_link_l2
This is closer to where the dirty flag is really needed, and it avoids
having checks for special cases related to cluster allocation directly
in the writev loop.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r-- | block/qcow2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/qcow2.h b/block/qcow2.h index 6dc79b5..a60fcb4 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -303,6 +303,8 @@ static inline bool qcow2_need_accurate_refcounts(BDRVQcowState *s) /* qcow2.c functions */ int qcow2_backing_read1(BlockDriverState *bs, QEMUIOVector *qiov, int64_t sector_num, int nb_sectors); + +int qcow2_mark_dirty(BlockDriverState *bs); int qcow2_update_header(BlockDriverState *bs); /* qcow2-refcount.c functions */ |