Skip to content

Fix error messages for metadata found during attach#860

Closed
Deixx wants to merge 1 commit intoOpen-CAS:masterfrom
Deixx:attach-error-msg
Closed

Fix error messages for metadata found during attach#860
Deixx wants to merge 1 commit intoOpen-CAS:masterfrom
Deixx:attach-error-msg

Conversation

@Deixx
Copy link
Contributor

@Deixx Deixx commented Jan 17, 2025

No description provided.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
inc/ocf_mngt.h Outdated
* Used for proper error handling to differentiate between start-cache
* and attach-cache operations, and display proper error message.
*/
bool is_cmd_attach;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an implementation detail and should not be exposed to the adapter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've changed it to utilise cache_state

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved the differentiation to OCL, but this small change is still required

@Deixx Deixx marked this pull request as draft January 28, 2025 11:20
@Deixx Deixx marked this pull request as ready for review January 29, 2025 10:10
@Deixx Deixx marked this pull request as draft January 29, 2025 13:10
@Deixx Deixx marked this pull request as ready for review January 30, 2025 09:36
@Deixx
Copy link
Contributor Author

Deixx commented Jan 30, 2025

Metadata will be zeroed on detach

@Deixx Deixx closed this Jan 30, 2025
@Deixx Deixx deleted the attach-error-msg branch January 30, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants