mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-10-01 18:49:01 +00:00
flush(): update mtime
git-svn-id: http://s3fs.googlecode.com/svn/trunk@55 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
8062d2e089
commit
d1a349b050
@ -997,9 +997,8 @@ s3fs_flush(const char *path, struct fuse_file_info *fi) {
|
||||
int flags = get_flags(fd);
|
||||
if ((flags & O_RDWR) || (flags & O_WRONLY)) {
|
||||
headers_t meta;
|
||||
int result = get_headers(path, meta);
|
||||
if (result != 0)
|
||||
return result;
|
||||
VERIFY(get_headers(path, meta));
|
||||
meta["x-amz-meta-mtime"]=stringificationizer(time(NULL));
|
||||
return put_local_fd(path, meta, fd);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user