Re: O_DIRECT on 2.4 ext3

2005-03-01 Thread Andreas Dilger
On Mar 01, 2005 21:34 -0800, Junfeng Yang wrote: > I tried to read from a regular ext3 file opened as O_DIRECT, but got the > "Invalid argument" error. Running the same test program on a block device > succeeded. ext3 doesn't support the direct_IO method in 2.4 kernels, though there was a patch

O_DIRECT on 2.4 ext3

2005-03-01 Thread Junfeng Yang
Hi, I tried to read from a regular ext3 file opened as O_DIRECT, but got the "Invalid argument" error. Running the same test program on a block device succeeded. uname -a shows Linux *** 2.4.27-2-686-smp #1 SMP Thu Jan 20 11:02:39 JST 2005 i686 GNU/Linux My test case is #include #include

O_DIRECT on 2.4 ext3

2005-03-01 Thread Junfeng Yang
Hi, I tried to read from a regular ext3 file opened as O_DIRECT, but got the Invalid argument error. Running the same test program on a block device succeeded. uname -a shows Linux *** 2.4.27-2-686-smp #1 SMP Thu Jan 20 11:02:39 JST 2005 i686 GNU/Linux My test case is #include sys/types.h

Re: O_DIRECT on 2.4 ext3

2005-03-01 Thread Andreas Dilger
On Mar 01, 2005 21:34 -0800, Junfeng Yang wrote: I tried to read from a regular ext3 file opened as O_DIRECT, but got the Invalid argument error. Running the same test program on a block device succeeded. ext3 doesn't support the direct_IO method in 2.4 kernels, though there was a patch at