This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] [PATCH] Make lio_listio set errno to EIO on requests with invalid aio_lio_opcode
- From: Roland McGrath <roland at redhat dot com>
- To: Suzuki <suzuki at In dot ibm dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, libc-alpha at sources dot redhat dot com
- Date: Tue, 21 Feb 2006 12:47:27 -0800 (PST)
- Subject: Re: [RFC] [PATCH] Make lio_listio set errno to EIO on requests with invalid aio_lio_opcode
> If the opcode is not supported then that I/O operation should fail. For
> those requests, since we know that I/O operation has failed, even before
> enqueuing a request, shouldn't lio_listio() return EIO ?
There is no obligation for lio_listio "know" by the time that it returns
that an operation has failed, unless you use LIO_WAIT.