Re: Direct I/O support (patches included)

2013-02-19 Thread Linda Walsh
Sorry for the multiple posts, am thinking about this problem in between working on other stuff... and stuff comes up. But bottom line -- I would look at the source of coreutils "dd" program and find out how they do direct I/O. I know they had to deal with alignment issues when the Linux kernel b

Re: Direct I/O support (patches included)

2013-02-19 Thread Linda Walsh
In thinking about this some more, you probably want to limit your O_DIRECT to just opens on files -- not sockets. I think that might be the cause of the error I got. The other stuff may still apply, but may be OS dependent. It doesn't look like it is real easy to tell in the open routine where