lkml.org 
[lkml]   [2009]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Linux 2.6.29
    Kyle Moffett wrote:
    > Really, I think virtually all of the database programs would be
    > perfectly happy with an "fsbarrier(fd, flags)" syscall, where if "fd"
    > points to a regular file or directory then it instructs the underlying
    > filesystem to do whatever internal barrier it supports, and if not
    > just fail with -ENOTSUPP (so you can fall back to fdatasync(), etc).
    > Perhaps "flags" would allow a "data" or "metadata" barrier, but if not
    > it's not a big issue.

    If you want a per-fd barrier call, there is always sync_file_range(2)


    > If a user-level tool needs to enforce ordering
    > between IOs the only tool right now is is a full flush

    or sync_file_range(2)...

    Jeff





    \
     
     \ /
      Last update: 2009-03-26 07:27    [W:4.058 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site