flush(): update mtime

git-svn-id: http://s3fs.googlecode.com/svn/trunk@55 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
rrizun 2008-02-18 07:18:11 +00:00
parent 8062d2e089
commit d1a349b050

View File

@ -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;