Re: async io (aio_read, aio_write) in 64-bit mode
Re: async io (aio_read, aio_write) in 64-bit mode
- Subject: Re: async io (aio_read, aio_write) in 64-bit mode
- From: Steve Olson <email@hidden>
- Date: Thu, 26 May 2005 11:22:17 -0400
On Wednesday, May 25, 2005, at 06:20PM, Steve Olson <email@hidden> wrote:
>Does anyone know of any issues with using the aio routines (aio_read, aio_write, aio_error, aio_return) with -arch ppc64 on Tiger?
>
>I'm seeing some strange behavior that suggests what's in my write buffer is not what actually gets written to disk. When i read the buffer back, all I get is zeroes (all bits off).
>
>This works great for me in 32-bit mode on Tiger, but compiling in 64-bit mode seems to be problematic. Of course, it could be me, but I've been wrestling with this for several days, and thought maybe 2 or more heads are better than one (or none!!)
>
>Regards,
>Steve
>
I believe I found the problem. I used fcntl(fd, F_NOCACHE, 1) on the file being accessed. While this worked very well in Panther, Tiger has a problem with it.
I need writes to hit the disk without caching, so this is a rather large problem for me. Will enter a bug report.
Regards,
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden