So I have the following:
disk1,disk2,disk3....disk8 for local stuff
googleteamdrive1.....googleteamdrive8 for remote stuff (actually it's an encrypted google drive so googleteamdrive is an encrypted mount).
I want to create a union of all of these, but struggling to understand how to properly handle the caching aspect, I want to use VFS caching for the remote drives only.
From my understanding, if I use VFS caching on the union mount, it would actually cache all my local writes too. Since my drives are all SSDs this kind of doesn't make sense as it means all files will be written to the "cache" and then writtne to my drive.
So, based on this setup, does it make sense to create a union with the appropriate VFS settings for googleteamdrive* remotes, then create another union without caching for local and the remote mount?
I tried this but ran into problems with random seeking without VFS caching turned on (e.g. WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes) for the merged drive.
So basically I wanted merged drive which doesn't cache for local but does cache for remotes.