mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Preserve sub-second precision with utimens (#1880)
Found via pjdfstest. References #1589.
This commit is contained in:
parent
30cf7a50bb
commit
0c75a63184
@ -2004,9 +2004,9 @@ static int s3fs_utimens(const char* _path, const struct timespec ts[2])
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
headers_t updatemeta;
|
headers_t updatemeta;
|
||||||
updatemeta["x-amz-meta-mtime"] = str(mtime.tv_sec);
|
updatemeta["x-amz-meta-mtime"] = str(mtime);
|
||||||
updatemeta["x-amz-meta-ctime"] = str(actime.tv_sec);
|
updatemeta["x-amz-meta-ctime"] = str(actime);
|
||||||
updatemeta["x-amz-meta-atime"] = str(actime.tv_sec);
|
updatemeta["x-amz-meta-atime"] = str(actime);
|
||||||
updatemeta["x-amz-copy-source"] = urlEncode(service_path + bucket + get_realpath(strpath.c_str()));
|
updatemeta["x-amz-copy-source"] = urlEncode(service_path + bucket + get_realpath(strpath.c_str()));
|
||||||
updatemeta["x-amz-metadata-directive"] = "REPLACE";
|
updatemeta["x-amz-metadata-directive"] = "REPLACE";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user