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

Review/fix validation of image without checksum #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pfrouleau
Copy link
Contributor

This serie fix the issue #50.

I added some log_mesg() to help to diagnose what we get in the image.

However, the checksum of the restored ext4 file system is not identical to the cloned one, when it is run on a 32 bits host. The original file system contains some bits that are not taken into account in bitmap. The log contains some messages likes: "extfsclone.c: BLOCK_UNINIT for group 2". This is also the case on the release branch (ie it was not introduced by the "format 0002").

…match

These counts can help to diagnose and identify problems during development.

Signed-off-by: Patrick Rouleau <[email protected]>
When the image does not use a checksum, it is validated with custom code.
Some file systems do not report the same used block count than what partclone
find while he build the used bitmap. We must use the count from the bitmap
because the clone and restore are based solely on the bitmap.

Signed-off-by: Patrick Rouleau <[email protected]>
@Thomas-Tsai
Copy link
Owner

Sorry, this pull request is too old. Please update it again if necessary, or I will turn off this request in the future. Please forgive me.

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