• Miklos Szeredi's avatar
    fuse: honor iocb sync flags on write · e1c0eecb
    Miklos Szeredi authored
    
    
    If the IOCB_DSYNC flag is set a sync is not being performed by
    fuse_file_write_iter.
    
    Honor IOCB_DSYNC/IOCB_SYNC by setting O_DYSNC/O_SYNC respectively in the
    flags filed of the write request.
    
    We don't need to sync data or metadata, since fuse_perform_write() does
    write-through and the filesystem is responsible for updating file times.
    
    Original patch by Vitaly Zolotusky.
    Reported-by: default avatarNate Clark <nate@neworld.us>
    Cc: Vitaly Zolotusky <vitaly@unitc.com>.
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    e1c0eecb
fuse_i.h 23.2 KB