This might be a slightly strange request, but I'd love the ability to do a read-only mount where the filesystem itself isn't mounted read-only, but instead changes are ignored and not uploaded to the server.
The reason is that I would like to mount a folder containing a LevelDB database in a read-only manner. Unfortunately, opening a LevelDB database seems to be impossible unless the filesystem is writable, because LevelDB wants to create a lockfile as part of the open operation. But I don't want these lockfiles to get synced to the remote and I don't want any other changes to be possible either.
I was wondering if I could accomplish this using the
--disable FEATURE flag, but it doesn't seem like there's a feature that covers "making any change to the remote." Or maybe I could set the write cache duration to infinite somehow? Any help would be much appreciated.