Hello. I tried again with the beta and correlated outputs of my script (with time) with the logs from rclone
Summary: I still see that the time switches some time after the write
My mount command
!rclone mount :s3:rclonejs /rclone222 -vv --s3-acl=private --s3-env-auth=false --s3-access-key-id=... --s3-secret-access-key=... --s3-endpoint=s3.us-south.cloud-object-storage.appdomain.cloud --s3-location-constraint=us-south-standard --debug-fuse -v --vfs-cache-mode writes
Here is the init block
2021/03/11 16:49:36 DEBUG : rclone: Version "v1.55.0-beta.5249.59ed70ca9"
2021/03/11 16:49:36 DEBUG : Creating backend with remote ":s3:rclonejs"
2021/03/11 16:49:36 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2021/03/11 16:49:36 INFO : S3 bucket rclonejs: poll-interval is not supported by this remote
2021/03/11 16:49:36 DEBUG : vfs cache: root is "/root/.cache/rclone/vfs/:s3/rclonejs"
2021/03/11 16:49:36 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfs/:s3/rclonejs"
2021/03/11 16:49:36 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/:s3/rclonejs"
2021/03/11 16:49:36 DEBUG : S3 bucket rclonejs: Mounting on "/rclone222"
2021/03/11 16:49:36 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
Write happens: Thu Mar 11 17:05:07 UTC 2021
At that time I see that vfs cache gets active
2021/03/11 17:05:07 DEBUG : vfs cache: looking for range={Pos:0 Size:30} in [{Pos:0 Size:30}] - present true
2021/03/11 17:05:07 DEBUG : test_March_10/test.txt: vfs cache: setting modification time to 2021-03-11 17:05:07.114220898 +0000 UTC m=+930.333001916
2021/03/11 17:05:07 INFO : test_March_10/test.txt: vfs cache: queuing for upload in 5s
....
and remembers the timestamp
Still for the next couple of seconds , ls gives the "old" timestamp of the file
Thu Mar 11 17:05:07 UTC 2021
total 1
drwxr-xr-x 1 0 0 0 2021-03-11 16:50:04.869983803 +0000 .
drwxr-xr-x 1 0 0 0 2021-03-11 16:49:36.841348206 +0000 ..
-rw-r--r-- 1 0 0 30 2021-03-11 16:58:17.206742784 +0000 test.txt
Thu Mar 11 17:05:09 UTC 2021
total 1
drwxr-xr-x 1 0 0 0 2021-03-11 16:50:04.869983803 +0000 .
drwxr-xr-x 1 0 0 0 2021-03-11 16:49:36.841348206 +0000 ..
-rw-r--r-- 1 0 0 30 2021-03-11 16:58:17.206742784 +0000 test.txt
Thu Mar 11 17:05:10 UTC 2021
total 1
drwxr-xr-x 1 0 0 0 2021-03-11 16:50:04.869983803 +0000 .
drwxr-xr-x 1 0 0 0 2021-03-11 16:49:36.841348206 +0000 ..
-rw-r--r-- 1 0 0 30 2021-03-11 16:58:17.206742784 +0000 test.txt
Thu Mar 11 17:05:11 UTC 2021
total 1
drwxr-xr-x 1 0 0 0 2021-03-11 16:50:04.869983803 +0000 .
drwxr-xr-x 1 0 0 0 2021-03-11 16:49:36.841348206 +0000 ..
-rw-r--r-- 1 0 0 30 2021-03-11 16:58:17.206742784 +0000 test.txt
Then vfs does something again
2021/03/11 17:05:12 DEBUG : test_March_10/test.txt: vfs cache: starting upload
2021/03/11 17:05:12 DEBUG : test_March_10/test.txt: MD5 = 69be8471fd63704e026d6978c24ad0ad OK
2021/03/11 17:05:12 INFO : test_March_10/test.txt: Copied (replaced existing)
And here it seems the fingerprint changes and something is written back to the cache
2021/03/11 17:05:12 DEBUG : test_March_10/test.txt: vfs cache: fingerprint now "30,2021-03-11 17:05:07.114220898 +0000 UTC,69be8471fd63704e026d6978c24ad0ad"
2021/03/11 17:05:12 DEBUG : test_March_10/test.txt: vfs cache: writeback object to VFS layer
2021/03/11 17:05:12 DEBUG : test_March_10: Added virtual directory entry vAddFile: "test.txt"
2021/03/11 17:05:12 INFO : test_March_10/test.txt: vfs cache: upload succeeded try #1
Now the time switched also on the ls calls
Thu Mar 11 17:05:12 UTC 2021
total 1
drwxr-xr-x 1 0 0 0 2021-03-11 16:50:04.869983803 +0000 .
drwxr-xr-x 1 0 0 0 2021-03-11 16:49:36.841348206 +0000 ..
-rw-r--r-- 1 0 0 30 2021-03-11 17:05:07.114220898 +0000 test.txt