Is it possible to edit the service_account_file flag from rclone.conf while that remote is mounted? Will usage of the mount go through the current value of service_account_file or will it use the one from when the mount was originally created (meaning a mount restart is necessary)?
EDIT: would running the following command achieve this?
I didn't find anything in the log but looking at API activity it looks like changing in place does not work when mounted and traffic sticks to whatever service account was set when mounted.
@ncw is there any command that can be sent to force a refresh without needing tor restart the mount?
So the use case, you have some event or trigger and want to change the service accounts on the mount dynamically as the only way to do that now is to remount.
You could always use something like mergerfs and round robin requests on multiple mounts or split the mounts up into a service account for a section or something.
I guess it depends on how problematic the download issue is.
So you have a union that specifies the cloud remote and the local path and you mount the union without using mergerfs? And in these conditions you can update the account in place without unmounting? Sounds promising, I'll give this a shot.
EDIT: nope, it's not working for me. Just tested it out, mounted it on a temp location and have a script running that edits the service account and I'm listing the entire directory structure. There are list hits only in one of the accounts.