Restrict cloning with different properties#18180
Open
amotin wants to merge 1 commit intoopenzfs:masterfrom
Open
Restrict cloning with different properties#18180amotin wants to merge 1 commit intoopenzfs:masterfrom
amotin wants to merge 1 commit intoopenzfs:masterfrom
Conversation
robn
approved these changes
Feb 6, 2026
Member
robn
left a comment
There was a problem hiding this comment.
Yeah, that's fair. I had thought about arguing to disallow it only if the result would be worse (eg source has higher copies= than dest), especially after seeing that its strict by default. But I'm not going to, because this is a small and easy-to-understand change, chooses safety every time, and for most people probably won't come up anyway. Works for me!
behlendorf
approved these changes
Feb 6, 2026
Contributor
behlendorf
left a comment
There was a problem hiding this comment.
Yes, I'm good with this. However, instead of removing the block_diff* tests let's use this as an opportunity to test that the new option works by setting zfs_bclone_strict_properties=0 for these tests.
While technically its not a problem to clone between datasets with different properties, it might create expectation of new properties being applied during data move, while actually it won't happen. For copies and checksum it may mean incorrect safety expectations. For dedup, compression and special_small_blocks -- performance and space usage. New zfs_bclone_strict_properties tunable controls it. Signed-off-by: Alexander Motin <[email protected]>
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.
While technically its not a problem to clone between datasets with different properties, it might create expectation of new properties being applied during data move, while actually it won't happen. For
copiesandchecksumit may mean incorrect safety expectations. Fordedup,compressionandspecial_small_blocks-- performance and space usage. Newzfs_bclone_strict_propertiestunable controls it.Types of changes
Checklist:
Signed-off-by.