-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
cmd/zpool: deny creation and upgrade of zpools with block_cloning on FreeBSD #14935
Conversation
3ac2b2e
to
02e9748
Compare
…FreeBSD The block_cloning feature is still under active stabilization. To avoid accidentally enabling during create or during upgrade add a deny enable flag. The user can still explicitly enable after creation. Signed-off-by: Mattia Pascal <mattia.pascal42@hotmail.com> Sponsored by: Rubicon Communications, LLC ("Netgate")
02e9748
to
da2bcb5
Compare
@pjd @allanjude thoughts on this. @Mattia-Pascal the zloop failures here are suspicious. There's backtraces in the logs are incomplete so I can't say for certain, but normally zloop passes and in this case both runs failed. |
I've added sysctl vfs.zfs.brt.enabled to FreeBSD (disabled by default) to control block cloning. I personally don't see the reason to complicate ZFS further with change like that. I haven't received any reports since the last round of fixes, but I can consider renaming sysctl to something like vfs.zfs.brt.experimental_enabled. |
Thank you,
(If I'm missing a more recent commit: sorry.) |
For the moment at least I don't think we need this on Linux since it hasn't been wired up to the VFS. |
I would agree that this shouldn't be FreeBSD-specific. If it's going to be disabled by default, it should be disabled everywhere by default. I'd also agree it shouldn't be marked enabled on a pool by default if we're going to have a tunable mitigating that anyway. (Really, I suppose the same argument kind of applies to (I haven't done any testing of the feature recently, and this is not a vote on its stability, I just don't think we should have this special-cased to FreeBSD-only...) |
Closing, I'd prefer not to add this additional complexity. In addition, this feature has now been wired up on Linux and seen further stabilization. |
The block_cloning feature is still under active stabilization. To avoid accidentally enabling during create or during upgrade add a deny enable flag. The user can still explicitly enable after creation.
Signed-off-by: Mattia Pascal mattia.pascal42@hotmail.com
Requested by: Mateusz Guzik mjg@FreeBSD.org
Sponsored by: Rubicon Communications, LLC ("Netgate")
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.