Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diff, overlay, and space reuse #221

Open
ultranity opened this issue Jan 15, 2025 · 0 comments
Open

diff, overlay, and space reuse #221

ultranity opened this issue Jan 15, 2025 · 0 comments

Comments

@ultranity
Copy link

Currently enroot seems to be inflating the sqsh image every time when it's created if they are under different name, which means the space usages will grow as the instance num since we are duplicating the content file system everytime.

I have found some relavant overlayfs mount code in

fuse-overlayfs -f -o "lowerdir=${rootfs}/lower,upperdir=${rootfs}/upper,workdir=${rootfs}/work" "${rootfs}" &
, but when I'm using the $ENROOT_RUNTIME_PATH only consists of some empty folder and all file changes inside the container happens in $ENROOT_DATA_PATH. I'm not sure if there are some missing configs that caused this situation?

furthermore, is it possible to implement something like volume overlay so we can share the root filesystem and track changes like docker diff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant