I'm moving from a standalone rclone mount setup to the one driven by rcd and rc. I'm trying to understand numeric defaults for parameters passed with rc, like "ReadAhead" or "CacheMaxAge". For size: is it bytes? For time: seconds, milliseconds or... ?
Reason why I'm asking. Standard rclone params accept format of "6h" or "1G". These are no longer accepted as rc params. Not much in documentation either.
Run the command 'rclone version' and share the full output of the command.
rclone v1.67.0
os/version: darwin 15.0 (64 bit)
os/kernel: 24.0.0 (arm64)
os/type: darwin
os/arch: arm64 (ARMv8 compatible)
go/version: go1.22.4
go/linking: dynamic
go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
SFTP
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Failed to rc: operation "mount/mount" failed: key "vfsOpt": json: cannot unmarshal string into Go struct field Options.CacheMaxAge of type time.Duration
...and if I correct the 1st param, it keeps repeating for other ones (size or time). looks like a type conversion issue? it clearly expects a number / int.
EDIT: If I use values without " I'll get something like:
Failed to rc: operation "mount/mount" failed: key "vfsOpt": invalid character 'h' after object key:value pair
Looking at the code, it seems not all the vfs options are defined with the fancy types that make this possible.
Types fs.SizeSuffix and fs.Duration will work but int64/time.Duration won't.
That is something I may well fix soon as I'm currently revamping the config system to unify the command line and the RC config for all config, not just the backend options.