Hoi,
When writting a Rados/Rbd client I noticed that the sequence:
r = rbd_aio_readv(ri->ri_image, iov, iovcnt, offset, comp);
r = rbd_aio_wait_for_complete(comp);
nbytes = rbd_aio_get_return_value(comp);
returns the number of bytes read in nbytes.
Now if I do the same but with `rbd_aio_write(v)` I only receive
zero as value...
I would have expected that rbd_aio_get_return_value would more
or less function like aio_return(2):
DESCRIPTION
The aio_return() system call returns the final status of the
asynchronous
I/O request associated with the structure pointed to by iocb.
RETURN VALUES
If the asynchronous I/O request has completed, the status is
returned as
described in read(2), write(2), or fsync(2). Otherwise, aio_return()
returns -1 and sets errno to indicate the error condition.
So I was expecting the amount of bytes written?
--WjW
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx