Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@hqhq
Copy link
Contributor

@hqhq hqhq commented Mar 9, 2015

  1. add subsystem mounted check in d.path(), so we can really get IsNotFound error and skip Set.
  2. cgroup unit test use temp path, not real cgroup path, so we should create the path by filepath.Join() instead of d.path().

hqhq added 2 commits March 9, 2015 09:16
If cgroup patch doesn't exist, there is no point we do the Set.

Signed-off-by: Qiang Huang <[email protected]>
d.path() should be used to get the real cgroup path, for temp path,
we can just create one.

Signed-off-by: Qiang Huang <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch :) I've been meaning to const all these paths and use those consts.

@vmarmol
Copy link
Contributor

vmarmol commented Mar 10, 2015

LGTM

1 similar comment
@crosbymichael
Copy link
Contributor

LGTM

crosbymichael added a commit that referenced this pull request Mar 10, 2015
@crosbymichael crosbymichael merged commit 9387ebb into docker-archive:master Mar 10, 2015
@hqhq hqhq deleted the hq_fix_some_cgroups_issues branch March 23, 2015 01:53
@tianon
Copy link
Contributor

tianon commented Mar 23, 2015

Went to go fix the regression in #337 (essentially making "blkio" required) and found that this PR already did so. 👍 ❤️ 😍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants