Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
fec822c4
Commit
fec822c4
authored
Jan 23, 2014
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "cgroupfs: need the full path to setup cpuset"
This reverts commit
47f5ede0
.
parent
ff5e2751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
cgroup.c
src/lxc/cgroup.c
+1
-9
No files found.
src/lxc/cgroup.c
View file @
fec822c4
...
...
@@ -958,20 +958,12 @@ struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const char *pa
goto
cleanup_from_error
;
}
else
if
(
r
==
0
)
{
/* successfully created */
char
*
full_path
=
NULL
;
r
=
lxc_grow_array
((
void
***
)
&
info_ptr
->
created_paths
,
&
info_ptr
->
created_paths_capacity
,
info_ptr
->
created_paths_count
+
1
,
8
);
if
(
r
<
0
)
goto
cleanup_from_error
;
info_ptr
->
created_paths
[
info_ptr
->
created_paths_count
++
]
=
current_entire_path
;
full_path
=
cgroup_to_absolute_path
(
info_ptr
->
designated_mount_point
,
current_entire_path
,
NULL
);
if
(
!
full_path
)
goto
cleanup_from_error
;
setup_cpuset_if_needed
(
info_ptr
->
hierarchy
->
subsystems
,
full_path
);
free
(
full_path
);
current_entire_path
);
}
else
{
/* if we didn't create the cgroup, then we have to make sure that
* further cgroups will be created properly
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment