diff --git a/block/qcow2.c b/block/qcow2.c index 05e002d856e87b5e0698cb166109821dafaaf9b8..4bc679a155f5dde9201e924204edfc8134a29db6 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -312,7 +312,11 @@ static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result, } if (fix && result->check_errors == 0 && result->corruptions == 0) { - return qcow2_mark_clean(bs); + ret = qcow2_mark_clean(bs); + if (ret < 0) { + return ret; + } + return qcow2_mark_consistent(bs); } return ret; }