blockdev.c (760e006384ecd5b8b8b1b91b5c85ff8fdcb3a21f) blockdev.c (dd62f1ca433ea60b06590884642ad2c8f8e539f2)
1/*
2 * QEMU host block devices
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or
7 * later. See the COPYING file in the top-level directory.
8 *

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

1541
1542 bdrv_set_aio_context(state->new_bs, state->aio_context);
1543
1544 /* This removes our old bs and adds the new bs */
1545 bdrv_append(state->new_bs, state->old_bs);
1546 /* We don't need (or want) to use the transactional
1547 * bdrv_reopen_multiple() across all the entries at once, because we
1548 * don't want to abort all of them if one of them fails the reopen */
1/*
2 * QEMU host block devices
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or
7 * later. See the COPYING file in the top-level directory.
8 *

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

1541
1542 bdrv_set_aio_context(state->new_bs, state->aio_context);
1543
1544 /* This removes our old bs and adds the new bs */
1545 bdrv_append(state->new_bs, state->old_bs);
1546 /* We don't need (or want) to use the transactional
1547 * bdrv_reopen_multiple() across all the entries at once, because we
1548 * don't want to abort all of them if one of them fails the reopen */
1549 bdrv_reopen(state->new_bs, state->new_bs->open_flags & ~BDRV_O_RDWR,
1549 bdrv_reopen(state->old_bs, state->old_bs->open_flags & ~BDRV_O_RDWR,
1550 NULL);
1551
1552 aio_context_release(state->aio_context);
1553}
1554
1555static void external_snapshot_abort(BlkTransactionState *common)
1556{
1557 ExternalSnapshotState *state =

--- 1678 unchanged lines hidden ---
1550 NULL);
1551
1552 aio_context_release(state->aio_context);
1553}
1554
1555static void external_snapshot_abort(BlkTransactionState *common)
1556{
1557 ExternalSnapshotState *state =

--- 1678 unchanged lines hidden ---