Skip to content

mngt: Report incompatible metadata as found on attach - #987

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:metadata-found-attach
Oct 15, 2026
Merged

robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:metadata-found-attach

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Attaching a device that holds metadata created by a different OCF or adapter version, or in a different block mode, failed with the specific incompatibility error instead of OCF_ERR_METADATA_FOUND. As a result the adapter could not tell the user that the device contains metadata which has to be discarded with --force.

The detailed reason is still logged by the superblock validation.

Attaching a device that holds metadata created by a different OCF or
adapter version, or in a different block mode, failed with the specific
incompatibility error instead of OCF_ERR_METADATA_FOUND. As a result
the adapter could not tell the user that the device contains metadata
which has to be discarded with --force.

The detailed reason is still logged by the superblock validation.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit 2987c89 into Open-CAS:master Oct 15, 2026
5 checks passed
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.

1 participant