block.c (85cc8a4f6b515404448de7f22db403807152b657) block.c (ef9041a7b8c46001c8c44eab3eac9920739d9b36)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

5385 bs->drv->bdrv_co_invalidate_cache(bs, &local_err);
5386 if (local_err) {
5387 bs->open_flags |= BDRV_O_INACTIVE;
5388 error_propagate(errp, local_err);
5389 return;
5390 }
5391 }
5392
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

5385 bs->drv->bdrv_co_invalidate_cache(bs, &local_err);
5386 if (local_err) {
5387 bs->open_flags |= BDRV_O_INACTIVE;
5388 error_propagate(errp, local_err);
5389 return;
5390 }
5391 }
5392
5393 for (bm = bdrv_dirty_bitmap_next(bs, NULL); bm;
5394 bm = bdrv_dirty_bitmap_next(bs, bm))
5395 {
5393 FOR_EACH_DIRTY_BITMAP(bs, bm) {
5396 bdrv_dirty_bitmap_skip_store(bm, false);
5397 }
5398
5399 ret = refresh_total_sectors(bs, bs->total_sectors);
5400 if (ret < 0) {
5401 bs->open_flags |= BDRV_O_INACTIVE;
5402 error_setg_errno(errp, -ret, "Could not refresh total sector count");
5403 return;

--- 1181 unchanged lines hidden ---
5394 bdrv_dirty_bitmap_skip_store(bm, false);
5395 }
5396
5397 ret = refresh_total_sectors(bs, bs->total_sectors);
5398 if (ret < 0) {
5399 bs->open_flags |= BDRV_O_INACTIVE;
5400 error_setg_errno(errp, -ret, "Could not refresh total sector count");
5401 return;

--- 1181 unchanged lines hidden ---