Access time not updated via rclone

What is the problem you are having with rclone?

A block device is mounted using lazytime at /mnt/md0

/dev/md0 on /mnt/md0 type ext4 (rw,lazytime,discard,stripe=256)

That same path /mnt/md0 is mounted via rclone (using relatime, not sure where this comes from) at /mnt/remote/rust

rust:/mnt/md0 on /mnt/remote/rust type fuse.rclone (rw,nosuid,nodev,relatime,user_id=1000,group_id=1001,allow_other)

When the file is accessed via rclone, the access time is not modified. It is modified correctly when accessed via the block device mount.

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.2

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.15.0-86-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Local backend / no cloud storage

Mount command:

/usr/bin/rclone mount --config=/home/xxx/.config/rclone/rclone.conf --allow-other --vfs-fast-fingerprint --cache-dir /mnt/local/.cache --vfs-cache-max-age=504h --vfs-cache-mode=full --vfs-cache-max-size=1200G --umask=002 --syslog -v rust:/mnt/md0 /mnt/remote/rust

The command you were trying to run (eg rclone copy /tmp remote:tmp)

$ touch -a /mnt/md0/accesstime
$ ls -lu --full-time /mnt/md0/accesstime
-rw-r--r-- 1 xxx xxx 4 2023-10-19 17:23:19.034414416 +0200 /mnt/md0/accesstime
$ touch -a /mnt/md0/accesstime
$ ls -lu --full-time /mnt/md0/accesstime
-rw-r--r-- 1 xxx xxx 4 2023-10-19 17:23:36.730400289 +0200 /mnt/md0/accesstime
$ touch -a /mnt/remote/rust/accesstime
$ ls -lu --full-time /mnt/remote/rust/accesstime
-rw-rw-r-- 1 xxx xxx 4 2023-10-19 17:18:24.254669948 +0200 /mnt/remote/rust/accesstime
$ touch -a /mnt/remote/rust/accesstime
$ ls -lu --full-time /mnt/remote/rust/accesstime
-rw-rw-r-- 1 xxx xxx 4 2023-10-19 17:18:24.254669948 +0200 /mnt/remote/rust/accesstime

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[rust]
type = local

A log from the command that you were trying to run with the -vv flag

$ touch -a /mnt/test/accesstime
2023/10/19 17:42:35 DEBUG : /: Lookup: name="accesstime"
2023/10/19 17:42:35 DEBUG : /: >Lookup: node=accesstime, err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: Attr:
2023/10/19 17:42:35 DEBUG : accesstime: >Attr: a=valid=1s ino=0 size=4 mode=-rw-rw-r--, err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: Open: flags=OpenWriteOnly+OpenNonblock
2023/10/19 17:42:35 DEBUG : accesstime: Open: flags=O_WRONLY|0x800
2023/10/19 17:42:35 DEBUG : accesstime: newRWFileHandle:
2023/10/19 17:42:35 DEBUG : accesstime: >newRWFileHandle: err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: >Open: fd=accesstime (rw), err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: >Open: fh=&{accesstime (rw)}, err=<nil>
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: Flush:
2023/10/19 17:42:35 DEBUG : accesstime(0xc0006fcbc0): RWFileHandle.Flush
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: >Flush: err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: Setattr: a=Setattr [ID=0xa Node=0x2 Uid=1000 Gid=1001 Pid=109749] atime=2023-10-19 17:42:35.661615849 +0200 CEST atime=now handle=INVALID-0x0
2023/10/19 17:42:35 DEBUG : accesstime: >Setattr: err=<nil>
2023/10/19 17:42:35 DEBUG : accesstime: Attr:
2023/10/19 17:42:35 DEBUG : accesstime: >Attr: a=valid=1s ino=0 size=4 mode=-rw-rw-r--, err=<nil>
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: Flush:
2023/10/19 17:42:35 DEBUG : accesstime(0xc0006fcbc0): RWFileHandle.Flush
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: >Flush: err=<nil>
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: Release:
2023/10/19 17:42:35 DEBUG : accesstime(0xc0006fcbc0): RWFileHandle.Release
2023/10/19 17:42:35 DEBUG : accesstime(0xc0006fcbc0): close:
2023/10/19 17:42:35 DEBUG : accesstime(0xc0006fcbc0): >close: err=<nil>
2023/10/19 17:42:35 DEBUG : &{accesstime (rw)}: >Release: err=<nil>
$ ls -lu --full-time /mnt/test/accesstime
2023/10/19 17:42:59 DEBUG : /: Lookup: name="accesstime"
2023/10/19 17:42:59 DEBUG : /: >Lookup: node=accesstime, err=<nil>
2023/10/19 17:42:59 DEBUG : accesstime: Attr:
2023/10/19 17:42:59 DEBUG : accesstime: >Attr: a=valid=1s ino=0 size=4 mode=-rw-rw-r--, err=<nil>
-rw-rw-r-- 1 xxx xxx 4 2023-10-19 17:18:24.254669948 +0200 /mnt/test/accesstime

I'd probably file a bug report as I can reproduce it as well. It seems to try to set it, but haven't dug into what fails there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.