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
0c3720a3
Commit
0c3720a3
authored
Sep 30, 2014
by
KATOH Yasufumi
Committed by
Serge Hallyn
Oct 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-config can show lxc.cgroup.(use|pattern)
Signed-off-by:
KATOH Yasufumi
<
karma@jazz.email.ne.jp
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
4167102e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lxc_config.c
src/lxc/lxc_config.c
+8
-1
No files found.
src/lxc/lxc_config.c
View file @
0c3720a3
...
@@ -36,6 +36,8 @@ static struct lxc_config_items items[] =
...
@@ -36,6 +36,8 @@ static struct lxc_config_items items[] =
{
.
name
=
"lxc.bdev.lvm.vg"
,
},
{
.
name
=
"lxc.bdev.lvm.vg"
,
},
{
.
name
=
"lxc.bdev.lvm.thin_pool"
,
},
{
.
name
=
"lxc.bdev.lvm.thin_pool"
,
},
{
.
name
=
"lxc.bdev.zfs.root"
,
},
{
.
name
=
"lxc.bdev.zfs.root"
,
},
{
.
name
=
"lxc.cgroup.use"
,
},
{
.
name
=
"lxc.cgroup.pattern"
,
},
{
.
name
=
NULL
,
},
{
.
name
=
NULL
,
},
};
};
...
@@ -58,6 +60,7 @@ static void list_config_items(void)
...
@@ -58,6 +60,7 @@ static void list_config_items(void)
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
struct
lxc_config_items
*
i
;
struct
lxc_config_items
*
i
;
const
char
*
value
;
if
(
argc
<
2
)
if
(
argc
<
2
)
usage
(
argv
[
0
]);
usage
(
argv
[
0
]);
...
@@ -65,7 +68,11 @@ int main(int argc, char *argv[])
...
@@ -65,7 +68,11 @@ int main(int argc, char *argv[])
list_config_items
();
list_config_items
();
for
(
i
=
&
items
[
0
];
i
->
name
;
i
++
)
{
for
(
i
=
&
items
[
0
];
i
->
name
;
i
++
)
{
if
(
strcmp
(
argv
[
1
],
i
->
name
)
==
0
)
{
if
(
strcmp
(
argv
[
1
],
i
->
name
)
==
0
)
{
printf
(
"%s
\n
"
,
lxc_get_global_config_item
(
i
->
name
));
value
=
lxc_get_global_config_item
(
i
->
name
);
if
(
value
)
printf
(
"%s
\n
"
,
value
);
else
printf
(
"%s is not set.
\n
"
,
argv
[
1
]);
exit
(
0
);
exit
(
0
);
}
}
}
}
...
...
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