mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
block: Convert close calls to qemu_close
This patch converts all block layer close calls, that correspond to qemu_open calls, to qemu_close. Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
6165f4d85d
commit
2e1e79dae7
8 changed files with 30 additions and 24 deletions
4
savevm.c
4
savevm.c
|
@ -513,7 +513,7 @@ static void qemu_fill_buffer(QEMUFile *f)
|
|||
*
|
||||
* Returns f->close() return value, or 0 if close function is not set.
|
||||
*/
|
||||
static int qemu_close(QEMUFile *f)
|
||||
static int qemu_fclose_internal(QEMUFile *f)
|
||||
{
|
||||
int ret = 0;
|
||||
if (f->close) {
|
||||
|
@ -535,7 +535,7 @@ int qemu_fclose(QEMUFile *f)
|
|||
{
|
||||
int ret;
|
||||
qemu_fflush(f);
|
||||
ret = qemu_close(f);
|
||||
ret = qemu_fclose_internal(f);
|
||||
/* If any error was spotted before closing, we should report it
|
||||
* instead of the close() return value.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue