Repository navigation
Fix activating large_microzap on receive - #18144
Merged
Merged
Conversation
Contributor
Author
|
It looks like the call earlier in |
AustinWise
force-pushed
the
austin/large-microzap
branch
from
January 19, 2026 19:46
acc509d to
c9ea6c9
Compare
AustinWise
marked this pull request as ready for review
January 21, 2026 16:18
amotin
reviewed
Jan 23, 2026
AustinWise
marked this pull request as draft
January 23, 2026 16:35
AustinWise
force-pushed
the
austin/large-microzap
branch
3 times, most recently
from
January 25, 2026 18:31
72a537f to
8568dce
Compare
This ensures that the in-memory state of the feature is recorded and that `dsl_dataset_activate_feature` is not called when the feature is already active. Signed-off-by: Austin Wise <AustinWise@gmail.com>
AustinWise
force-pushed
the
austin/large-microzap
branch
from
January 25, 2026 21:52
8568dce to
c72ddf1
Compare
AustinWise
marked this pull request as ready for review
January 26, 2026 05:21
amotin
approved these changes
Feb 2, 2026
behlendorf
approved these changes
Feb 5, 2026
behlendorf
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Thanks for running this down and putting together new test cases for it!
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this pull request
Feb 17, 2026
This ensures that the in-memory state of the feature is recorded and that `dsl_dataset_activate_feature` is not called when the feature is already active. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Austin Wise <AustinWise@gmail.com> Closes openzfs#18143 Closes openzfs#18144
lundman
pushed a commit
to openzfsonosx/openzfs-fork
that referenced
this pull request
Jul 30, 2026
This ensures that the in-memory state of the feature is recorded and that `dsl_dataset_activate_feature` is not called when the feature is already active. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Austin Wise <AustinWise@gmail.com> Closes openzfs#18143 Closes openzfs#18144
snajpa
pushed a commit
to vpsfreecz/zfs
that referenced
this pull request
Aug 5, 2026
This ensures that the in-memory state of the feature is recorded and that `dsl_dataset_activate_feature` is not called when the feature is already active. Porting notes: The dmu_recv.c implementation and both focused receive tests are unchanged from upstream. OpenZFS 2.3.8 does not yet have the adjacent DIO_STRICT tunable entry, so ZAP_MICRO_MAX_SIZE is placed after XATTR_COMPAT in the available tunables.cfg sequence. Patch development history: - v1: Upstream recorded large_microzap activation in receive state and added incremental and transitive receive coverage. - v2: Adapted only the tunables.cfg insertion context to the 2.3.8 list and documented the unchanged source and test implementation and validation. Validation: git diff --check, targeted cstyle for dmu_recv.c, and ksh syntax checks for both focused receive tests passed. Changed implementation and test lines were compared with upstream; only tunables.cfg placement differs. No build or ZTS was run. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Austin Wise <AustinWise@gmail.com> Closes openzfs#18143 Closes openzfs#18144 Upstream: 4f180e0 Ported-by: Pavel Snajdr <snajpa@snajpa.net>
pull Bot
pushed a commit
to A-Archives-and-Forks/openzfs
that referenced
this pull request
Sep 26, 2026
This ensures that the in-memory state of the feature is recorded and that `dsl_dataset_activate_feature` is not called when the feature is already active. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Austin Wise <AustinWise@gmail.com> Closes openzfs#18143 Closes openzfs#18144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation and Context
Fixes #18143.
Description
When receiving a stream with the large microzap feature flag, the feature activation was not correctly recorded in two different ways:
dsl_dataset_activate_featuremay be called when the feature is already recorded as active, causing a panic.This PR fixes both problems.
How Has This Been Tested?
Two tests that fail on the
masterbranch but pass with this PR.Types of changes
Checklist:
Signed-off-by.