I am using rclone with "--vfs-cache-mode full" caching on "Google Drive". The problem I am having when making multiple edits to a markdown (*.md) file, the file ends up being truncated / completely empty.
I have isolated the problem to the following reproducible steps (that probably causes this problem).
Just create a text file with echo blabla > test.txt.
Edit the file with nano test.txt. Make a change and exit ---> file gets correctly saved.
Make an edit again with nano test.txt. Make a change and exit --> nano gives an error that the the file has changed (???). Expected behavior: the file should not have changed.
Notes.
If you resave fast enough in step 3, the file is not changed. So I expect that would have to do with the "WriteWait" and "WriteBack" parameters. Bottomline is the file should not have been changed between step 2 and step 3 (and likely the unexpected file change causes the application I use for markdown to truncate the file).
If you do step 3 too slow (for example wait a minute before starting nano again), there is also no problem. So for reproducing, immediately start nano again after "exit &save" in step 2.
I use the following options to mount the cloud drive