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
ef184f8c
Commit
ef184f8c
authored
Feb 24, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Feb 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cpuset configuration with smp only
Do not check CPUSET configuration when SMP is not enabled. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
9eb09f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lxc-checkconfig.in
src/lxc/lxc-checkconfig.in
+11
-3
No files found.
src/lxc/lxc-checkconfig.in
View file @
ef184f8c
...
...
@@ -9,9 +9,17 @@ SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING
=
"echo -en
\\
033[1;33m"
SETCOLOR_NORMAL
=
"echo -en
\\
033[0;39m"
is_set
()
{
$GREP
-q
"
$1
=[y|m]"
$CONFIG
RES
=
$?
return
$?
}
is_enabled
()
{
mandatory
=
$2
$GREP
-q
"
$1
=[y|m]"
$CONFIG
is_set
$1
RES
=
$?
if
[
$RES
=
0
]
;
then
...
...
@@ -54,13 +62,13 @@ echo -n "Network namespace: " && is_enabled CONFIG_NET_NS
echo
-n
"Multiple /dev/pts instances: "
&&
is_enabled DEVPTS_MULTIPLE_INSTANCES
echo
echo
"--- Control groups ---"
echo
-n
"Cgroup: "
&&
is_enabled CONFIG_CGROUPS
echo
-n
"Cgroup: "
&&
is_enabled CONFIG_CGROUPS
yes
echo
-n
"Cgroup namespace: "
&&
is_enabled CONFIG_CGROUP_NS
echo
-n
"Cgroup device: "
&&
is_enabled CONFIG_CGROUP_DEVICE
echo
-n
"Cgroup sched: "
&&
is_enabled CONFIG_CGROUP_SCHED
echo
-n
"Cgroup cpu account: "
&&
is_enabled CONFIG_CGROUP_CPUACCT
echo
-n
"Cgroup memory controller: "
&&
is_enabled CONFIG_CGROUP_MEM_RES_CTLR
echo
-n
"Cgroup cpuset: "
&&
is_enabled CONFIG_CPUSETS
is_set CONFIG_SMP
&&
echo
-n
"Cgroup cpuset: "
&&
is_enabled CONFIG_CPUSETS
echo
echo
"--- Misc ---"
echo
-n
"Veth pair device: "
&&
is_enabled CONFIG_VETH
...
...
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