]>
Commit | Line | Data |
---|---|---|
6fb04df7 | 1 | From 2d152da7999e912f6fc104f81a1616c3c6d96a89 Mon Sep 17 00:00:00 2001 |
ca0fe5f5 WB |
2 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> |
3 | Date: Thu, 10 Dec 2015 14:25:01 +0100 | |
6fb04df7 | 4 | Subject: [PATCH 32/55] vma-writer: aio_set_fd_handler update |
ca0fe5f5 WB |
5 | |
6 | passing 'false' as new is_external parameter to | |
7 | aio_set_fd_handler as per commit | |
8 | dca21e23ba: aio: Add "is_external" flag for event handlers | |
9 | ||
10 | For-patch: introduce new vma archive format | |
11 | --- | |
12 | vma-writer.c | 4 ++-- | |
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | diff --git a/vma-writer.c b/vma-writer.c | |
16 | index 5cc4564..f5a7abd 100644 | |
17 | --- a/vma-writer.c | |
18 | +++ b/vma-writer.c | |
19 | @@ -231,9 +231,9 @@ vma_queue_write(VmaWriter *vmaw, const void *buf, size_t bytes) | |
20 | vmaw->co_writer = qemu_coroutine_self(); | |
21 | ||
22 | while (done < bytes) { | |
23 | - aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, NULL, vma_co_continue_write, vmaw); | |
24 | + aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, false, NULL, vma_co_continue_write, vmaw); | |
25 | qemu_coroutine_yield(); | |
26 | - aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, NULL, NULL, NULL); | |
27 | + aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, false, NULL, NULL, NULL); | |
28 | if (vmaw->status < 0) { | |
29 | DPRINTF("vma_queue_write detected canceled backup\n"); | |
30 | done = -1; | |
31 | -- | |
32 | 2.1.4 | |
33 |