Skip to content

sesparse: Accept reserved1 0x200 in seSparse headers#1

Open
roamingengineer311 wants to merge 1 commit into
storpool:masterfrom
roamingengineer311:master
Open

sesparse: Accept reserved1 0x200 in seSparse headers#1
roamingengineer311 wants to merge 1 commit into
storpool:masterfrom
roamingengineer311:master

Conversation

@roamingengineer311
Copy link
Copy Markdown

The current validation only accepts reserved1 = 0, so these snapshots fail immediately with:

unsupported values in hdr

This change accepts reserved1 values of either 0 or 0x200, while leaving the rest of the header validation unchanged.

Tested with an ESXi-generated seSparse snapshot. Before the change, sesparse failed during header validation. After the change, it reads the grain directory and applies the delta to the raw parent disk.

Signed-off-by: Dmitrii Gilev <dgilev@opennebula.io>
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