On Thu, Jul 13, 2023 at 07:07:33PM +0000, Tage Johansson wrote: > Does this mean that the call to `aio_notify_read()` or > `aio_notify_write()` which discovered the error will also return the > error?
Yes! > And that the completion callback was called by that call to > `aio_notify_*`, in the same thread and before the call to > `aio_notify_*` returned? I believe so, although I don't think the contract requires this. For example it would seem to be contractually valid to not call the completion callback until much later, eg. nbd_close. Also, in addition to what Eric said in his reply, it is also possible for callbacks to set the error int (through the pointer) in order to cause an error to be returned. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs