mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #897] Metadata mtime (x-amz-meta-mtime) defined as floating point number is reported as "Jan 1 1970" #520
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aritgithub on GitHub (Jan 17, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/897
Last stable version 1.84 on standard S3 bucket always reports "Jan 1 1970" as modification timestamp of files with Metadata mtime (x-amz-meta-mtime) inserted by some external tools as floating point since the epoch accurate to 1 ns.
Test case:
Metadata mtime defined as long number (no floating point) reports the correct timestamp of file:
Is possible to exclude decimal part of floating point number from parser function of this metadata?
@gaul commented on GitHub (Jan 18, 2019):
This seems reasonable. Can you share which application uses this format and perhaps submit a pull request to fix this? You will want to look at
s3fs_util.cpp:get_timeandstring_util.cpp:s3fs_strtoofft. #905 has some unit tests which might help implement this.@aritgithub commented on GitHub (Jan 18, 2019):
The tool used is rclone; technical notes of the project say:
Sure, I can try... thanks for your suggestion.
@ggtakec commented on GitHub (Jan 20, 2019):
@aritgithub I merged new code for floating point number in x-amz-meta-mtime by #909.
If you can please use master branch source code for your buckets which has objects stamped mtime by rclone.
I'm closing this issue, but if you have a problem yet please reopen.
Thanks in advance for your assistance.