lkml.org 
[lkml]   [2005]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 2/2][FAT] miss-sync issues on sync mount (miss-sync on utime)
    The 2nd patch fixes miss-sync issue on attribute operations,
    like utime.

    ---
    Hiroyuki Machida
    Signed-off-by: Hiroyuki Machida <machdia@sm.sony.co.jp>
    ---
    file.c | 4 ++++
    1 files changed, 4 insertions(+)

    --- linux-2.6.13/fs/fat/file.c 2005-08-29 08:41:01.000000000 +0900
    +++ linux-2.6.13.new/fs/fat/file.c 2005-09-11 12:26:51.031743750 +0900
    @@ -201,6 +183,10 @@ int fat_notify_change(struct dentry *den
    else
    mask = sbi->options.fs_fmask;
    inode->i_mode &= S_IFMT | (S_IRWXUGO & ~mask);
    +
    + if ( (!error) && IS_SYNC(inode)) {
    + error = write_inode_now(inode, 1);
    + }
    out:
    unlock_kernel();
    return error;
    \
     
     \ /
      Last update: 2005-09-14 22:44    [W:0.025 / U:0.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site