What is the problem you are having with rclone?
more a question... in a union mount, rclone gets directory mtimes at mount time... but i can't figure out what is preventing dir mtimes from being updated (e.g. when files are created/deleted). it holds onto that initial mtime at mount and doesn't seems to update it unless i explicitly touch the directory. the mtime on the upstream is updated properly.
is there a flag for mtime caching i'm missing?
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: unknown
- os/kernel: 4.4.180+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
issue occurs with entirely local upstreams.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
/usr/bin/rclone mount local-union: /mnt/union-test --config=/var/services/homes/vena/.config/rclone/rclone.conf --daemon --user-agent=rcvideo/v1.1 --log-file=/volume3/rclone/logs/rc.log --log-level=NOTICE --filter-from=/volume3/rclone/scripts/filter-mounts.txt --poll-interval=0 --buffer-size=0M --dir-cache-time=0 --union-cache-time=0 --union-action-policy=all --union-create-policy=epff --union-search-policy=epff
state of the union and backends before creating a file:
vena@forest:~$ ls -al /mnt/union-test
total 4
drwx------ 1 vena users 0 Feb 3 12:21 .
drwxr-xr-x 5 root root 4096 Feb 3 12:15 ..
drwx------ 1 vena users 0 Feb 3 12:19 testdir
vena@forest:~$ ls -al /volume2/test/path1/
total 0
drwx------ 1 vena users 0 Feb 3 12:10 .
drwx------ 1 vena users 20 Feb 3 12:10 ..
vena@forest:~$ ls -al /volume2/test/path2/
total 0
drwx------ 1 vena users 14 Feb 3 12:19 .
drwx------ 1 vena users 20 Feb 3 12:10 ..
drwx------ 1 vena users 0 Feb 3 12:19 testdir
note timestamp of the "testdir" dir in the union is 12:19, obtained at mount time from the path2 backend.
creating a file in "testdir" in the union, checking timestamp again:
vena@forest:~$ touch /mnt/union-test/testdir/testfile
vena@forest:~$ ls -al /mnt/union-test/
total 4
drwx------ 1 vena users 0 Feb 3 12:21 .
drwxr-xr-x 5 root root 4096 Feb 3 12:15 ..
drwx------ 1 vena users 0 Feb 3 12:19 testdir
vena@forest:~$ ls -al /volume2/test/path1/
total 0
drwx------ 1 vena users 0 Feb 3 12:10 .
drwx------ 1 vena users 20 Feb 3 12:10 ..
vena@forest:~$ ls -al /volume2/test/path2/
total 0
drwx------ 1 vena users 14 Feb 3 12:19 .
drwx------ 1 vena users 20 Feb 3 12:10 ..
drwx------ 1 vena users 16 Feb 3 12:25 testdir
rclone wrote the file to the path2 upstream and testdir's mtime was updated there, however testdir's mtime in the union remains as it was at mount time.
The rclone config contents with secrets removed.
[local-union]
type = union
upstreams = /volume2/test/path1 /volume2/test/path2