[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] aio-posix: fill error message that is missed
From: |
Cao jin |
Subject: |
[Qemu-block] [PATCH] aio-posix: fill error message that is missed |
Date: |
Tue, 12 Jul 2016 19:34:15 +0800 |
The current judegement of caller is meaningless, make it useful.
Signed-off-by: Cao jin <address@hidden>
---
aio-posix.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/aio-posix.c b/aio-posix.c
index 6006122..8b0deb7 100644
--- a/aio-posix.c
+++ b/aio-posix.c
@@ -18,6 +18,7 @@
#include "block/block.h"
#include "qemu/queue.h"
#include "qemu/sockets.h"
+#include "qapi/error.h"
#ifdef CONFIG_EPOLL_CREATE1
#include <sys/epoll.h>
#endif
@@ -491,6 +492,7 @@ void aio_context_setup(AioContext *ctx, Error **errp)
assert(!ctx->epollfd);
ctx->epollfd = epoll_create1(EPOLL_CLOEXEC);
if (ctx->epollfd == -1) {
+ error_setg_errno(errp, errno, "Failed to create epoll instance");
ctx->epoll_available = false;
} else {
ctx->epoll_available = true;
--
2.1.0
- [Qemu-block] [PATCH] aio-posix: fill error message that is missed,
Cao jin <=