-
Notifications
You must be signed in to change notification settings - Fork 34
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
use overlayfs for storage instead of btrfs #85
Comments
well, how would you do that with non-root? |
On Ubuntu you can do it, but with the upstream kernel you can't. I think the speed savings would probably be worth it for non-patched kernels, though. |
You could generate a fake set of mtree deltas, though it might be simpler to just copy the core bits of the diff layer generation yourself to avoid going through mtree data structures at all. My long-term goal is to solve this problem with hooks (see openSUSE/umoci#325, though I have discussed this for a while) such that all of the core steps of unpacking and repacking are hookable (so that you can bring-your-own storage and diff generation setup), and that feature would be available from the umoci API. But I do appreciate that you might view that as a layer violation of some kind -- you'd need to implement the storage side of things as an "umoci hook". But for Go users we could implement it as a function callback so you don't need to implement it as a binary. |
I believe this is all implemented now. |
We should use overlayfs (with a writable upperdir= for storing modifications) instead of btrfs. That is, we should build a temporary filesystem up atomfs style, with each layer in its own directory. This will speed things up in several ways:
The text was updated successfully, but these errors were encountered: