Provided an command to purge vfscache

I am using rclone as backend for Kubernetes, csi-rclone. The cache works well but didn't guarantee write back before unmount. This would cause changes to lost when a workload is transferred to another machine.

I proposed:

  • a command to purge vfs cache or;
  • an mounting option to force write back before unmount.

Actually someone made an issue about your second proposal very recently (I don't think that was you was it?)

I wrote some ideas on how to implement it there - I'd be interested in your opinions.

Purge as in guarantee all dirty files are uploaded? Or Purge as in just delete everything?

This is exactly what I want.
Purge as all dirty block uploaded

I see. I think vfs/sync would be a better name.