-
Notifications
You must be signed in to change notification settings - Fork 553
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
schema/defs-linux: change weight type to uint16 #898
Conversation
Signed-off-by: 0x0916 <w@laoqinren.net>
This change is probably not backwards compatible and against best practices. Do you have any documentation citing this as a |
@stevvooe Please refer to https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#block-io also, the kernel document: https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
|
@0x0916 How does that counter any of the concerns? The kernel API doesn't mention that this is restricted to a It is unlikely that this will break anyone, but I'd urge caution. |
@stevvooe this should not break anyone, it also matches the type in spec-go which has been uint16 since forever. I think this is more like fixing a typo. |
@dqminh Didn't we recently learn our lesson about liberal use of unsigned integers? The only use case of unsigned integers is when they map a field to a specific bit width. Unsigned integers should not be used to validate that something is positive or within a certain range of values. That is the job of validation. |
To help this PR along, here are the current types for
The
And
So the only thing in that whole chain that is not @stevvooe brings up #876, and I have no problem with runtime-spec maintainers deciding that |
Signed-off-by: 0x0916 w@laoqinren.net