aio_read template.

Jeremy Allison jra at samba.org
Wed Jun 8 01:36:39 GMT 2005


On Wed, Jun 08, 2005 at 11:20:37AM +1000, James Peach wrote:
> 
> Once the IO is successfully queued, it's a not quite clear whether you
> can get an arbitrary read(2) return value without errno being set. On
> IRIX, aio_read(3) flat our states that the result can be any read(2)
> return value. So, I'd hesitate at saying that no short reads are
> guaranteed.

Yeah, that's what I thought. However it's being used for disk io exclusively
so it's doubful we'll get one (unless we're reading from a fifo).

> Jeremy, do you have a specific workload where using aio would help?

No, but Volker does :-).

Jeremy.


More information about the samba-technical mailing list