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

Try to rollback an invalid partial mount/unmount #22

Open
kolayne opened this issue Jul 27, 2024 · 0 comments
Open

Try to rollback an invalid partial mount/unmount #22

kolayne opened this issue Jul 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kolayne
Copy link
Owner

kolayne commented Jul 27, 2024

In the current implementation, it is possible that during a mount/unmount operation, each comprising two system call (mount/unmount the internal overlayfs + create/delete the corresponding activemount file), if the second attempted system call fails, we end up in an invalid state with the volume being partially mounted/unmounted.

In such a situation, let's attempt to rollback. E.g., if we mounted a volume first, then tried to create a file but failed, attempt to unmount the volume before reporting the error. When possible, this will restore the volume's clean state.

@kolayne kolayne added the enhancement New feature or request label Jul 27, 2024
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