[lkml]   [2006]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: O_DIRECT, ext3fs, kernel 2.4.32... again
    On Wed, May 03, 2006 at 07:27:52AM +0200, DervishD wrote:
    > ...
    > Are the differences too large?


    > I know that this change would be intrusive and probably large,
    > but IMHO is a quite important bug, because it prevents apps to
    > selectively disable O_DIRECT (the flag is accepted by open(), so
    > there's no reason the app should bother about which caused the
    > read()/write() failures. In fact, is very difficult to know that
    > those failures are caused by partial/buggy support of O_DIRECT flag).

    You could open for direct, do a direct read, and see if it fails.
    If it fails, clear O_DIRECT on the fd via fcntl(F_SETFL) then do
    regular buffered IO instead... a bit hacky, but should work fine
    I think.


    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: 2006-05-03 08:38    [W:0.020 / U:22.372 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site