vhdx.c (067179868ec8cd467d9810143339e882cb60e388) vhdx.c (79a558664840adf502fe94907b0a680836e3e98e)
1/*
2 * Block driver for Hyper-V VHDX Images
3 *
4 * Copyright (c) 2013 Red Hat, Inc.,
5 *
6 * Authors:
7 * Jeff Cody <jcody@redhat.com>
8 *

--- 2149 unchanged lines hidden (view full) ---

2158
2159/* If opened r/w, the VHDX driver will automatically replay the log,
2160 * if one is present, inside the vhdx_open() call.
2161 *
2162 * If qemu-img check -r all is called, the image is automatically opened
2163 * r/w and any log has already been replayed, so there is nothing (currently)
2164 * for us to do here
2165 */
1/*
2 * Block driver for Hyper-V VHDX Images
3 *
4 * Copyright (c) 2013 Red Hat, Inc.,
5 *
6 * Authors:
7 * Jeff Cody <jcody@redhat.com>
8 *

--- 2149 unchanged lines hidden (view full) ---

2158
2159/* If opened r/w, the VHDX driver will automatically replay the log,
2160 * if one is present, inside the vhdx_open() call.
2161 *
2162 * If qemu-img check -r all is called, the image is automatically opened
2163 * r/w and any log has already been replayed, so there is nothing (currently)
2164 * for us to do here
2165 */
2166static int coroutine_fn vhdx_co_check(BlockDriverState *bs,
2167 BdrvCheckResult *result,
2168 BdrvCheckMode fix)
2166static int coroutine_fn GRAPH_RDLOCK
2167vhdx_co_check(BlockDriverState *bs, BdrvCheckResult *result,
2168 BdrvCheckMode fix)
2169{
2170 BDRVVHDXState *s = bs->opaque;
2171
2172 if (s->log_replayed_on_open) {
2173 result->corruptions_fixed++;
2174 }
2175
2176 vhdx_check_bat_entries(bs, &result->corruptions);

--- 93 unchanged lines hidden ---
2169{
2170 BDRVVHDXState *s = bs->opaque;
2171
2172 if (s->log_replayed_on_open) {
2173 result->corruptions_fixed++;
2174 }
2175
2176 vhdx_check_bat_entries(bs, &result->corruptions);

--- 93 unchanged lines hidden ---