lkml.org 
[lkml]   [2003]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: O_DIRECT foolish question
From
Date
On Wed, 2003-02-12 at 18:24, Chris Wedgwood wrote:
> On Wed, Feb 12, 2003 at 06:02:58PM -0500, Bruno Diniz de Paula wrote:
>
> > ext2.
>
> are you able to test with another fs? (reiserfs and XFS also support
> O_DIRECT)

Unfortunately not, I just have ext2 partitions here...

>
> > read(3, "", 4096) = 0
>
> odd... I'm not sure why you get this
>
> i tested locally here and it works as expected ... my test code is
> appended.

But your code doesn't use O_DIRECT:

if ((h = open("test", O_RDONLY)) < 0)

Let me know whether including O_DIRECT the test worked.

Bruno.

>
>
> --cw
--
Bruno Diniz de Paula <diniz@cs.rutgers.edu>
Rutgers University
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.421 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site