mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-19 10:45:12 +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);
|
int flags = get_flags(fd);
|
||||||
if ((flags & O_RDWR) || (flags & O_WRONLY)) {
|
if ((flags & O_RDWR) || (flags & O_WRONLY)) {
|
||||||
headers_t meta;
|
headers_t meta;
|
||||||
int result = get_headers(path, meta);
|
VERIFY(get_headers(path, meta));
|
||||||
if (result != 0)
|
meta["x-amz-meta-mtime"]=stringificationizer(time(NULL));
|
||||||
return result;
|
|
||||||
return put_local_fd(path, meta, fd);
|
return put_local_fd(path, meta, fd);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user