schema/defs-linux: change weight type to uint16#898
schema/defs-linux: change weight type to uint16#898tianon merged 1 commit intoopencontainers:masterfrom
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