Uh oh!
There was an error while loading. Please reload this page.
fix blkio related validation - #545
Conversation
vbatts
commented
Aug 29, 2016
@cyphar are these values that you say needed to stay as pointers? |
cyphar
commented
Aug 29, 2016
I'm fairly sure they do need to remain as pointers. Though, IIRC @wking mentioned something about this a few days ago (saying that there are some open issues about the pointer as dont-touch-this semantics). |
wking
commented
Aug 29, 2016
On Mon, Aug 29, 2016 at 08:01:27AM -0700, Aleksa Sarai wrote:
Pointers make it easy to say “leave it alone”, but they don't give you But in this case, blkioThrottleReadBpsDevice and friends are “array or The uint16 → int16 change for major/minor matches the spec in And the Major/Minor touched by 5d47014 are not pointers, but the |
Mashimiao
commented
Sep 29, 2016
ping @vbatts any comments? |
5d47014 to
bd8e3a5CompareMashimiao
commented
Dec 19, 2016
@opencontainers/runtime-spec-maintainers PTAL |
| "blkioWeight": { | ||
| "id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeight", | ||
| "$ref": "defs-linux.json#/definitions/blkioWeightPointer" | ||
| "$ref": "defs-linux.json#/definitions/blkioWeight" |
There was a problem hiding this comment.
I see blkioWeight is still pointer in specs-go.
There was a problem hiding this comment.
I have modified blkioWeight to uint16Pointer as it is typed in spec-go, so blkioWeightPointer is not needed any more
Mashimiao
commented
Dec 23, 2016
mrunalp
commented
Jan 11, 2017
@hqhq does this still make sense after your recent PR about negative values? |
| } | ||
| }, | ||
| { | ||
| "type": "null" |
There was a problem hiding this comment.
We probably don't want the null alternative since null alternatives for arrays were just rejected in #555.
wking
commented
Jan 12, 2017
via email
bd8e3a5 to
055f3faCompare| "blkioWeight": { | ||
| "type": "integer", | ||
| "minimum": 10, | ||
| "maximum": 1000 |
There was a problem hiding this comment.
Yeah, it seems keep this is better, updated.
055f3fa to
61e0da0Compare| ] | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "defs-linux.json#/definitions/Device" |
There was a problem hiding this comment.
Inconsistent indent (try cd schema && make fmt).
| "id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer" |
There was a problem hiding this comment.
As of 61e0da0, you still need to remove the definition for this from defs-linux.json.
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
61e0da0 to
58832f9CompareSigned-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
wking
commented
Jan 12, 2017
via email
Through 58832f9 looks good to me. |
Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com