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

zdb: zero-pad checksum output follow up #14497

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Resolve zdb_checksum ZTS failures introduced by ac76481. Alternately, we could revert the original patch if we find this formatting change breaks other tests or support scripts.

Description

Apply zero padding for checksums consistently. The SNPRINTF_BLKPTR macro was not updated in commit ac76481 which results in the cli_root/zdb/zdb_checksum.ksh test case reliably failing.

How Has This Been Tested?

Verified the failing test case now passed. Waiting on the CI for a full test run.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Apply zero padding for checksums consistently.  The SNPRINTF_BLKPTR
macro was not updated in commit ac76481 which results in the
cli_root/zdb/zdb_checksum.ksh test case reliably failing.

Signed-off-by: Brian Behlendorf <[email protected]>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Feb 14, 2023
@behlendorf behlendorf requested a review from ryao February 14, 2023 20:59
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Feb 15, 2023
@behlendorf behlendorf merged commit 57cfae4 into openzfs:master Feb 15, 2023
@robn
Copy link
Member

robn commented Feb 16, 2023

Ugh, sorry, and thanks. I actually had this in the original change but managed to miss it when assembling the commit.

lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Mar 3, 2023
Apply zero padding for checksums consistently.  The SNPRINTF_BLKPTR
macro was not updated in commit ac76481 which results in the
`cli_root/zdb/zdb_checksum.ksh` test case reliably failing.

Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Akash B <[email protected]>
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#14497
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants