Date: Mon, 03 Dec 2007 10:00:16 +0800 From: David Xu <davidxu@FreeBSD.org> To: Julian Elischer <julian@elischer.org> Cc: hackers@FreeBSD.org, re@FreeBSD.org Subject: Re: MFC TO 6.X (6.3?) to fix aio_return() ? Message-ID: <47536330.40502@freebsd.org> In-Reply-To: <474F2DD5.3010508@elischer.org> References: <474F2DD5.3010508@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote: > > This diff is a partial MFC (picking parts out of -current) > that makes aio_return() return the error return of a completed AIO > request. (as it does on othe OS's and in 7.x). > > The man page for 6.x and other OS's indicate that aio_return shoud > return all the same results as a returning read() or write() > including setting errno on error. > > in 6.x this does not happen. on 7.0 it does. > > The included test program can show the result when using gnop() > to simulate IO errors. > > BTW the test program could be used as a start to sample code as to how > to use kqueue and aio together. > > > If people agree this is worth fixing, it would be nice to get it in 6.3 > > > Looks OK to me. Regards, David Xu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47536330.40502>