threefoldtech / 0-fs

A new filesystem for zero-os that leverage on unionfs and a thin fuse layer to get the files on demand
Apache License 2.0
0 stars 1 forks source link

cache: indirection #42

Closed muhamadazmy closed 3 years ago

muhamadazmy commented 3 years ago

Fixes #41

maxux commented 3 years ago

If nothing is done during migration, things should still works fine but all chunks will be downloaded again and leftover chunks will remains (I guess). This should not break anything but will consume space for nothing.

zaibon commented 3 years ago

yeah nothing will break but we are trying to solve the huge inode size issue. If we do not remove what exist in the flat layout, then we do not solve anything. At least not for existing cache

maxux commented 3 years ago

I fully agree. Maybe upgrade post-process should take care of this ? But running process will keep to use old behavior.

Okay, we probably need to handle this here :p

muhamadazmy commented 3 years ago

yeah nothing will break but we are trying to solve the huge inode size issue. If we do not remove what exist in the flat layout, then we do not solve anything. At least not for existing cache

Yeah, i was thinking about this but deleting the already downloaded chunks won't solve the problem (well, at least not immediately) because updating g8ufs will not update the "running" mounts.

So we need probably to only clear the cache on machine reboot because only then we know that the flat cached files are not used by other mounts.