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
b3c723c4
Commit
b3c723c4
authored
Aug 22, 2017
by
Serge Hallyn
Committed by
GitHub
Aug 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1756 from brauner/2017-08-10/further_lxc_2.1_preparations
further lxc 2.1 preparations
parents
ed07dfa9
d6259d36
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
confile.c
src/lxc/confile.c
+0
-0
confile.h
src/lxc/confile.h
+1
-1
lxc-checkconfig.in
src/lxc/tools/lxc-checkconfig.in
+34
-3
No files found.
src/lxc/confile.c
View file @
b3c723c4
This diff is collapsed.
Click to expand it.
src/lxc/confile.h
View file @
b3c723c4
...
...
@@ -26,9 +26,9 @@
#ifndef __LXC_CONFILE_H
#define __LXC_CONFILE_H
#include <stdbool.h>
#include <stdio.h>
#include <lxc/attach_options.h>
#include <stdbool.h>
struct
lxc_conf
;
struct
lxc_list
;
...
...
src/lxc/tools/lxc-checkconfig.in
View file @
b3c723c4
...
...
@@ -128,30 +128,59 @@ if ([ $KVER_MAJOR -lt 4 ]) || ([ $KVER_MAJOR -eq 4 ] && [ $KVER_MINOR -lt 7 ]);
echo
-n
"Multiple /dev/pts instances: "
&&
is_enabled DEVPTS_MULTIPLE_INSTANCES
fi
echo
echo
"--- Control groups ---"
echo
-n
"Cgroups: "
&&
is_enabled CONFIG_CGROUPS
echo
print_cgroups
()
{
# print all mountpoints for cgroup filesystems
awk
'$1 !~ /#/ && $3 == mp { print $2; } ; END { exit(0); } '
"mp=
$1
"
"
$2
"
;
}
CGROUP_MNT_PATH
=
`
print_cgroups cgroup /proc/self/mounts |
head
-n
1
`
CGROUP_V1_MNTS
=
`
print_cgroups cgroup /proc/self/mounts
`
echo
echo
"Cgroup v1 mount points: "
echo
"
$CGROUP_V1_MNTS
"
echo
echo
-n
"Cgroup: "
&&
is_enabled CONFIG_CGROUPS
CGROUP_V2_MNTS
=
`
print_cgroups cgroup2 /proc/self/mounts
`
echo
"Cgroup v2 mount points: "
echo
"
$CGROUP_V2_MNTS
"
echo
CGROUP_SYSTEMD_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/systemd"
`
if
[
-z
"
$CGROUP_SYSTEMD_MNTPT
"
]
;
then
echo
-n
"Cgroup v1 systemd controller: "
"
$SETCOLOR_FAILURE
"
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
echo
fi
CGROUP_FREEZER_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/freezer"
`
if
[
-z
"
$CGROUP_FREEZER_MNTPT
"
]
;
then
echo
-n
"Cgroup v1 freezer controller: "
"
$SETCOLOR_FAILURE
"
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
echo
fi
CGROUP_MNT_PATH
=
`
echo
"
$CGROUP_V1_MNTS
"
|
head
-n
1
`
if
[
-f
$CGROUP_MNT_PATH
/cgroup.clone_children
]
;
then
echo
-n
"Cgroup clone_children flag: "
&&
echo
-n
"Cgroup
v1
clone_children flag: "
&&
$SETCOLOR_SUCCESS
&&
echo
"enabled"
&&
$SETCOLOR_NORMAL
else
echo
-n
"Cgroup namespace: "
&&
is_enabled CONFIG_CGROUP_NS
yes
fi
echo
-n
"Cgroup device: "
&&
is_enabled CONFIG_CGROUP_DEVICE
echo
echo
-n
"Cgroup sched: "
&&
is_enabled CONFIG_CGROUP_SCHED
echo
echo
-n
"Cgroup cpu account: "
&&
is_enabled CONFIG_CGROUP_CPUACCT
echo
echo
-n
"Cgroup memory controller: "
if
([
$KVER_MAJOR
-ge
3
]
&&
[
$KVER_MINOR
-ge
6
])
||
([
$KVER_MAJOR
-gt
3
])
;
then
is_enabled CONFIG_MEMCG
...
...
@@ -159,8 +188,10 @@ else
is_enabled CONFIG_CGROUP_MEM_RES_CTLR
fi
echo
is_set CONFIG_SMP
&&
echo
-n
"Cgroup cpuset: "
&&
is_enabled CONFIG_CPUSETS
&&
echo
echo
echo
"--- Misc ---"
echo
-n
"Veth pair device: "
&&
is_enabled CONFIG_VETH
&&
is_probed veth
echo
...
...
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