-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option --remount
for remount support
#6488
Comments
What do you think rclone should when it receives this flag Here is what I found in the mount man page
It sounds very hard to diff the config for the mount before and after and work out what to do. Rclone could
? |
I did a few tests using echo as a mount helper:
TL;DR rclone only has to verify that the new remote is the same as the old one, then unmount the mount point and carry on as before. If the verification fails then return success (there really should be a warning). |
Do you want to have a go at implementing this? If so then the first step would be to add a Line 31 in 90d2313
Then add a flag Line 125 in 90d2313
The Then somewhere just before here Line 247 in 90d2313
You check |
Sadly I can't code in Go, and I don't have time to learn it 😅 |
Ill take a crack at this one. |
What is your current rclone version (output from
rclone version
)?What problem are you are trying to solve?
I'm using rclone as a mount helper. Whenever I try
sudo systemctl reload <rclone-mount>.mount
, it fails because rclone doesn't recognize the flag--remount
. Normally this can be circumvented by unmounting then remounting, but I also use NixOS and the aforementioned command is automatically invoked whenever I switch system generation.How do you think rclone should be changed to solve that?
Add the
--remount
flag to remount a file system.How to use GitHub
The text was updated successfully, but these errors were encountered: