[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
What functions does a block driver have to implement in order to
support read/write when it has been opened with O_DIRECT from user

I have made some experiments with plain read/write after opening with

/dev/ram0 open fails
file on ext2 r/w gives EINVAL
/dev/hdaN works

/dev/ram0 r/w gives EINVAL
file on ext2 r/w gives EINVAL
/dev/hdaN r/w gives EINVAL

WTF? It's not a library issue - strace shows the syscalls happening
with the right flag set on the open.

Can someone put me out of my misery? Where the heck is this implemented
in the 2.5.31 ide code? If there? There's no mention of direct_IO.

What I ultimately want is to know what code I have to put into a block
device driver in order to support O_DIRECT on the device.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.029 / U:2.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site