On 12/16/05, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote: > > > Everything works fine if O_DIRECT is not used. The memery I am workign > > with is 512 byte aligned. > > is the data also 512 byte aligned in the file? > OK, I have been checking over things. The memory buffer being used for the write source is page aligned, 512bytes. We are writing to disk in 4Mb chunks, that is still a mulitple of 512bytes. What is curious to me is that this works on 2.6.8 but not on any version higher than that. Any other suggestions? Michael. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/