windows: handle ERROR_NOT_READY
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 22:29:25 +0000 (16:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 22:29:25 +0000 (16:29 -0600)
commit749dff992a915224e50ac56065a664380632ed52
treec03a5691c7a183c8c8dea7ffba1e73f2bf57adfa
parentbf74b27eed661a967a700869cc3ec1046b46d8a7
windows: handle ERROR_NOT_READY

The windows-to-posix error translation doesn't include
ERROR_NOT_READY, add that.

Also add a default case that catches if we don't know what
an error is, and return EIO. That seems much safer than just
returning the Windows error directly, since the caller expects
an errno.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c