libaio io_getevents never returns an error
Hi,
I am writing an application in Ubuntu 14.04, 64-bit, using QtCreator 5.2, kernel 3.13.0-24, eglibc 2.19. I use io_submit to read/write to disk. I know I have a disk with bad sectors and with dmesg I can see a lot of errors, driver reporting bad status, sense codes, etc. but io_getevents never returns an error and all the res inside the response structures return the right number of bytes transferred. Is there another way to verify that the read/write completed successfully? Is it a bug in libaio?
Thanks
|