-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Reorder ZFS ioctls to fix cross-version compatibility #8484
Conversation
Signed-off-by: Lorenz Brun <lorenz@dolansoft.org>
@lorenz thanks for catching this! Yes, You're going to need to update |
0e45388
to
62e683d
Compare
I've updated that now as well, but haven't locally tested it. I'll just let the CI run. |
Thanks. Might just be Github's rendering but it looks like there may be some cstyle white space issues. |
I've actually just force-pushed a fix for that, but GitHub seems a bit slow to pick it up. |
Signed-off-by: Lorenz Brun <lorenz@dolansoft.org>
62e683d
to
0f0fb7d
Compare
Codecov Report
@@ Coverage Diff @@
## master #8484 +/- ##
==========================================
- Coverage 78.56% 78.54% -0.03%
==========================================
Files 380 380
Lines 116047 116047
==========================================
- Hits 91177 91144 -33
- Misses 24870 24903 +33
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This will cause a little disruption for those using channel programs, zpool sync
, and zfs recv
on master if their user/kernel versions aren't in sync. But it will prevent these issues between the tagged 0.7 and 0.8 releases which is the most important thing.
Do we have any automated tests to ensure that these changes aren't made in the future? |
@ahrens we do. @don-brady added them, this is why it was necessary to update |
I see, so I guess that the change that introduced the problem happened before libzfs_input_check.c was added? Seems like we would normally want to not allow any changes to existing lines in that file, otherwise someone could reorder the ioctls, and then change the test to pass! |
@ahrens yes, that's exactly what happened. This issue predates adding the test case. |
Description
Fixes #8482
How Has This Been Tested?
If this is merged before 0.8 is released, it should have pretty much no impact on existing tooling (since there was never a released version of ZoL with the broken numbering) and avoids a lot of headaches when trying to support multiple releases.
I've tested the kernel side of this change, since it only changes constants and the original reordering didn't cause any issues I do not anticipate any on the userspace side either.
Types of changes
Checklist:
Signed-off-by
.