block.c (e878bb1293d2cd0082550b320c3ccf245d0a69d4) | block.c (e3fc91aaaacbdc2a88bbb4109c8a1cded628e36f) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * Copyright (c) 2020 Virtuozzo International GmbH. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 4036 unchanged lines hidden (view full) --- 4045 g_autoptr(GSList) refresh_list = NULL; 4046 4047 assert(bs_queue != NULL); 4048 4049 QTAILQ_FOREACH(bs_entry, bs_queue, entry) { 4050 ret = bdrv_flush(bs_entry->state.bs); 4051 if (ret < 0) { 4052 error_setg_errno(errp, -ret, "Error flushing drive"); | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * Copyright (c) 2020 Virtuozzo International GmbH. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 4036 unchanged lines hidden (view full) --- 4045 g_autoptr(GSList) refresh_list = NULL; 4046 4047 assert(bs_queue != NULL); 4048 4049 QTAILQ_FOREACH(bs_entry, bs_queue, entry) { 4050 ret = bdrv_flush(bs_entry->state.bs); 4051 if (ret < 0) { 4052 error_setg_errno(errp, -ret, "Error flushing drive"); |
4053 goto cleanup; | 4053 goto abort; |
4054 } 4055 } 4056 4057 QTAILQ_FOREACH(bs_entry, bs_queue, entry) { 4058 assert(bs_entry->state.bs->quiesce_counter > 0); 4059 ret = bdrv_reopen_prepare(&bs_entry->state, bs_queue, tran, errp); 4060 if (ret < 0) { 4061 goto abort; --- 3515 unchanged lines hidden --- | 4054 } 4055 } 4056 4057 QTAILQ_FOREACH(bs_entry, bs_queue, entry) { 4058 assert(bs_entry->state.bs->quiesce_counter > 0); 4059 ret = bdrv_reopen_prepare(&bs_entry->state, bs_queue, tran, errp); 4060 if (ret < 0) { 4061 goto abort; --- 3515 unchanged lines hidden --- |