[PATCH 2/2][FAT] miss-sync issues on sync mount (miss-sync on utime)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The 2nd patch fixes miss-sync issue on attribute operations,
like utime.

---
Hiroyuki Machida
Signed-off-by: Hiroyuki Machida <[email protected]>
---
 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;

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux