Skip to content

Conversation

@Mashimiao
Copy link

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

These items are defined as required, I'm not sure the history, but I think they should not be pointer type.

@wking
Copy link
Contributor

wking commented Sep 30, 2016 via email

@Mashimiao
Copy link
Author

ping @opencontainers/runtime-spec-maintainers

@cyphar
Copy link
Member

cyphar commented Oct 26, 2016

Looks fine to me, but doesn't this need a rebase after the aggressive namespacing patch?

@mrunalp
Copy link
Contributor

mrunalp commented Oct 26, 2016

LGTM

Approved with PullApprove

@hqhq
Copy link
Contributor

hqhq commented Oct 27, 2016

Needs rebase but why there is no conflict detect?

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
@Mashimiao Mashimiao force-pushed the specs-config-fix-required-type branch from 125b879 to ef9ce84 Compare October 31, 2016 01:25
@Mashimiao
Copy link
Author

Mashimiao commented Oct 31, 2016

rebased
@opencontainers/runtime-spec-maintainers PTAL

@hqhq
Copy link
Contributor

hqhq commented Oct 31, 2016

LGTM
But you're pinging the wrong group :)

Approved with PullApprove

@Mashimiao
Copy link
Author

Ah, that's my fault... fixed.

type LinuxPids struct {
// Maximum number of PIDs. Default is "no limit".
Limit *int64 `json:"limit,omitempty"`
Limit int64 `json:"limit"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't nil here meaning no limit?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does 0 mean?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crosbymichael, nil is not allowed because limit is required.

@stevvooe, I expect 0 should be illegal. Can you file a separate PR to require strictly positive value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the kernel side, 0 is functionally identical to 1 (because you can join a cgroup even if it has a limit of 0).

@crosbymichael
Copy link
Member

crosbymichael commented Oct 31, 2016

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 32aa94e into opencontainers:master Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants