commit | 31f3267b4ba16b12fb9dd3b1953ea0f221cc2ab4 | [log] [tgz] |
---|---|---|
author | Maxim Patlasov <MPatlasov@parallels.com> | Mon Apr 28 14:19:24 2014 +0200 |
committer | Miklos Szeredi <mszeredi@suse.cz> | Mon Apr 28 14:19:24 2014 +0200 |
tree | 415623b0ba1a63d0c9bc2fdf189bc66cd68a650c | |
parent | 8b47e73e91c064cd75e8bf458ce738e1bfe2e700 [diff] |
fuse: trust kernel i_ctime only Let the kernel maintain i_ctime locally: update i_ctime explicitly on truncate, fallocate, open(O_TRUNC), setxattr, removexattr, link, rename, unlink. The inode flag I_DIRTY_SYNC serves as indication that local i_ctime should be flushed to the server eventually. The patch sets the flag and updates i_ctime in course of operations listed above. Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>