Re: O_DIRECT on 2.4 ext3

From: Andreas Dilger
Date: Wed Mar 02 2005 - 01:43:44 EST


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 one time.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://members.shaw.ca/adilger/ http://members.shaw.ca/golinux/

Attachment: pgp00000.pgp
Description: PGP signature