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

Feature: disable COW #4

Open
kolayne opened this issue May 19, 2023 · 1 comment
Open

Feature: disable COW #4

kolayne opened this issue May 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@kolayne
Copy link
Owner

kolayne commented May 19, 2023

The overlay filesystem imposes some limitations, for example, it has undefined behavior if the files in lowerdirs change while it is mounted.

The suggested feature is to give users an option to disable copy-on-write so that a straightforward recursive copy of the base directory is performed instead

@kolayne kolayne added the enhancement New feature or request label May 19, 2023
@kolayne
Copy link
Owner Author

kolayne commented Jun 3, 2023

Possible implementation that would be consistent with the mountpoint-dir-is-a-mount-point invariant (which the plugin needs do detect non-cleanly unmounted volumes, e.g., in case of reboot):

  • for a volatile no-COW volume, mount tmpfs onto mountpoint/
  • for a non-volatile no-COW volume, do a bind mount of mountpoint/ onto itself

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

No branches or pull requests

1 participant