Hi!

re!

Are we looking on wrong suspect - snip from code looks like this:

fd = open(f, O_RDONLY | O_DIRECT, 0);

and is not working for reiserfs3 filesystem?


reiserfs is supposed to support O_DIRECT. Please provide more details about the
problem.


File is opened with fd = open(f, O_RDONLY | O_DIRECT, 0);

After we tried to do:
numRead=read(fd, buf, alignedSize - offset)

numRead returns -1 errno is EINVAL (22).

Without O_DIRECT works fine as said in previous mails. Write with O_DIRECT works fine. Kernel version is: Linux xxxx 2.6.12.6 #6 SMP Thu Sep 15 12:29:53 CEST 2005 x86_64 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux

please let me know if you need more info.

tnx, Gorazd






Or in other words is reiserfs3 supporting reading with O_DIRECT flag?
Writing works well with 0_DIRECT on reiserfs3.

Gorazd





Reply via email to