You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the metadata seems to indicate that the device is a Stratis deivce, but no well-formed signature could be found.
If a well-formed signature was found but an error occurred during the repair of a second, ill-formed, old, or unreadable signature.
I think it is right to return an error in the first case, but I think the second should possibly be handled differently. I think a good option is to enrich the return type to
StratisResult<Option<StaticHeader>,Option<some error thing if repair fails>>
Closing in favor of #2133, as that separates the action of reading and interpreting the signature buffers from the action of choosing and if necessary repairing.
Note: Taken from #1440 (comment)
This returns an error in two situations:
I think it is right to return an error in the first case, but I think the second should possibly be handled differently. I think a good option is to enrich the return type to
Additionally, taken from: #1440 (comment)
Actually, better to include both errors, and improve the error messages in the errors returned from
sigblock_from_buf
.The text was updated successfully, but these errors were encountered: