-
Notifications
You must be signed in to change notification settings - Fork 55
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
Bug fix for liminal device code #3381
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me, but I'm worried that it might have a bad consequence, due to the issue discussed here: #3353 . The consequence would be that there is a pool that is setup but has no mounted filesystems. But the LUKS metadata gets corrupted. The pool cannot be started and all the devices are torn down and now the pool is basically impossible to set up in the normal way and may be entirely unrecoverable. That may very well be better than the alternatives, but I'ld like to introduce the possibility for your consideration.
I think there are arguments on both ends. If we do tear down the pool, we could permanently lose data. If we don't, we could leave the devices in an unlocked state unintentionally which could leave sensitive data available to an attacker. I think data loss may be more of a concern here and I'm happy to simply default to putting the partially constructed pool into the partially constructed pool slot to be torn down through |
That seems like the best choice that we have available. |
2bea479
to
deeb45d
Compare
This is ready for review again. |
deeb45d
to
0158e7c
Compare
I think this is actually a real bug. I need to fix the tests. |
110de51
to
3e0f140
Compare
Blocked by #3385 |
3e0f140
to
5a4ddcb
Compare
5a4ddcb
to
983c297
Compare
The path where starting pools automatically if the metadata indicates that they should be started did not correctly handle placing the partially stopped pool in the designated part of liminal devices.
983c297
to
2c7c31b
Compare
Merged in #3389 |
No description provided.