lkml.org 
[lkml]   [2005]   [Sep]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 15 Sep 2005 05:39:32 +0900
From"Machida, Hiroyuki" <>
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 MachidaSigned-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 20:44    [from the cache]
©2003-2008