2009-05-06 20:01:01 +00:00
|
|
|
diff --git a/libmultipath/checkers/directio.c b/libmultipath/checkers/directio.c
|
|
|
|
index 4728424..7624c4e 100644
|
|
|
|
--- a/libmultipath/checkers/directio.c
|
|
|
|
+++ b/libmultipath/checkers/directio.c
|
|
|
|
@@ -148,10 +148,11 @@ check_state(int fd, struct directio_context *ct, int sync)
|
2008-09-26 23:28:36 +00:00
|
|
|
}
|
|
|
|
ct->running++;
|
|
|
|
|
|
|
|
+ errno = 0;
|
|
|
|
r = io_getevents(ct->ioctx, 1L, 1L, &event, &timeout);
|
|
|
|
|
2009-05-06 20:01:01 +00:00
|
|
|
if (r < 0 ) {
|
|
|
|
- LOG(3, "async io getevents returned %li (errno=%s)", r,
|
|
|
|
+ LOG(3, "async io getevents returned %li (%s)", r,
|
|
|
|
strerror(errno));
|
|
|
|
rc = PATH_UNCHECKED;
|
|
|
|
} else if (r < 1L) {
|