diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-09 16:10:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:47 -0400 |
commit | b36c31ba95f0fe0a03c727300d9c4c54438a5636 (patch) | |
tree | 092a83bc7f351bdd66aafee0f59fddba982b4317 /fs/fuse/inode.c | |
parent | 45323fb76465a9576220c7427dbac7b1e7ad3caf (diff) |
[PATCH] fuse: don't update file times
Don't change mtime/ctime/atime to local time on read/write. Rather invalidate
file attributes, so next stat() will force a GETATTR call. Bug reported by
Ben Grimm.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 8dc66760b41a..52e954f4bb91 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -173,6 +173,7 @@ struct inode *fuse_iget(struct super_block *sb, unsigned long nodeid, | |||
173 | return NULL; | 173 | return NULL; |
174 | 174 | ||
175 | if ((inode->i_state & I_NEW)) { | 175 | if ((inode->i_state & I_NEW)) { |
176 | inode->i_flags |= S_NOATIME|S_NOCMTIME; | ||
176 | inode->i_generation = generation; | 177 | inode->i_generation = generation; |
177 | inode->i_data.backing_dev_info = &fc->bdi; | 178 | inode->i_data.backing_dev_info = &fc->bdi; |
178 | fuse_init_inode(inode, attr); | 179 | fuse_init_inode(inode, attr); |