DLPX-93447 test_estat_subcommands failed to run estat zvol command with compilation error #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
estat zvol
command fails on 24.04 with:The problem is a missing include directive in
zvol_impl.h
. openzfs/zfs@9dd5fe1caused this.
zvol_state_handle_t
is declared insys/zvol.h
which is not included inzvol_impl.h
.Solution
There were 2 fixes: include
zvol.h
inzvol_impl.h
or do what upstream does, includezvol.h
whenever includingzvol_impl.h
. This is likely why upstream doesn't see this issue. As such, I chose the latter here but have tested both fixes.Testing Done
ab-pre-push: https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build-orchestrator-pre-push/10452/