Skip to content
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

Add stream digest #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tasleson
Copy link
Contributor

Today the only way you have to check if a stream is correct is by
comparing the stream with the device or file that the stream
orginated from. This change adds a blake2 512bit digest to the
stream config.toml. This can be used to validate what we unpack
matches what we packed. This change also adds a "validate" command
with a sub command of stream.

Note: This change only applies to files or thick devices. Delta or
thin functionality needs to yet be included.

The digest in the config.yaml matches the output of b2sum, to make
it easier to validate that blk-archive is calculating the digest
correctly, eg.

# b2sum /dev/sdb

Matches what we have in the config.yaml for an archive of the same
device.

The toml serialization implementation does not handle u64 data types,
yaml does, and it also handles u128.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Today the only way you have to check if a stream is correct is by
comparing the stream with the device or file that the stream
orginated from.  This change adds a blake2 512bit digest to the
stream config.toml.  This can be used to validate what we unpack
matches what we packed.  This change also adds a "validate" command
with a sub command of stream.

Note: This change only applies to files or thick devices.  Delta or
thin functionality needs to yet be included.

The digest in the config.yaml matches the output of b2sum, to make
it easier to validate that blk-archive is calculating the digest
correctly, eg.

 # b2sum /dev/sdb

Matches what we have in the config.yaml for an archive of the same
device.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
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