spkenv / spk

A Package Manager for high velocity software environments, built on spfs.
https://spkenv.dev
Apache License 2.0
40 stars 6 forks source link

Consider using xattrs in overlayfs to avoid proxy files #489

Open rydrman opened 2 years ago

rydrman commented 2 years ago

https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html#metadata-only-copy-up

Could we use the REDIRECT and METACOPY xattrs on the file to build an upperdir rather than a render. This could be slower for large environments with a lot of files, so we might still want renders but have the renders contain these placeholder files instead.

Q: can you create an overlayfs that is used as the upperdir to another overlayfs?

rydrman commented 2 years ago

this also seems related to #468 as a possible better approach depending on how it can be implemented