On Nov 22 2020, Grunthos <[email protected]> wrote: > I have a local file with a date as reported by ```ls -l > --time-style=full-iso``` of "2020-05-09 00:36:07.999999900 +0000". > > When I copy it locally using ```cp -a``` on a local btrfs file system with > Ubuntu 20.4.1, the date is preserved. > > When I copy it to a local S3QL file system, one second is added to the > date. and it is reported as "2020-05-09 00:36:*08*.999999900". > > When I copy it back, the date retains the '08' seconds. If I copy it back > again to S3QL, it advances one more second. > > It looks like a rounding error, since dates ending in " 999999000" work as > expected.
Thanks for the report! This is probably a bug in how pyfuse3 converts timestamps from (or to) nanoseconds - see https://github.com/libfuse/pyfuse3/blob/master/src/pyfuse3.pyx#L298 and https://github.com/libfuse/pyfuse3/blob/master/src/macros.c#L17. Patches and unit tests welcome! :-) Best, -Nikolaus -- GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F »Time flies like an arrow, fruit flies like a Banana.« -- You received this message because you are subscribed to the Google Groups "s3ql" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/s3ql/87lfesea4v.fsf%40vostro.rath.org.
