commit | 009dd694e82098a703b8b5c8dd9f54c131dbb9b3 | [log] [tgz] |
---|---|---|
author | Maxim Patlasov <MPatlasov@parallels.com> | Mon Apr 28 14:19:22 2014 +0200 |
committer | Miklos Szeredi <mszeredi@suse.cz> | Mon Apr 28 14:19:22 2014 +0200 |
tree | 1029035a0ee696e59cc0fd90d116d9c4f7be2d17 | |
parent | d31433c8b06d44e27f7637574137dc4b5e6fd1d1 [diff] |
fuse: update mtime on truncate(2) Handling truncate(2), VFS doesn't set ATTR_MTIME bit in iattr structure; only ATTR_SIZE bit is set. In-kernel fuse must handle the case by setting mtime fields of struct fuse_setattr_in to "now" and set FATTR_MTIME bit even though ATTR_MTIME was not set. Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>