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
5f62730e
Commit
5f62730e
authored
Sep 24, 2013
by
Christian Seiler
Committed by
Serge Hallyn
Sep 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatic mounting: write lxc.mount.auto in write_config
Signed-off-by:
Christian Seiler
<
christian@iwakd.de
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
b06b8511
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
confile.c
src/lxc/confile.c
+23
-0
No files found.
src/lxc/confile.c
View file @
5f62730e
...
@@ -2018,6 +2018,29 @@ void write_config(FILE *fout, struct lxc_conf *c)
...
@@ -2018,6 +2018,29 @@ void write_config(FILE *fout, struct lxc_conf *c)
lxc_list_for_each
(
it
,
&
c
->
mount_list
)
{
lxc_list_for_each
(
it
,
&
c
->
mount_list
)
{
fprintf
(
fout
,
"lxc.mount.entry = %s
\n
"
,
(
char
*
)
it
->
elem
);
fprintf
(
fout
,
"lxc.mount.entry = %s
\n
"
,
(
char
*
)
it
->
elem
);
}
}
if
(
c
->
auto_mounts
&
LXC_AUTO_ALL_MASK
)
{
fprintf
(
fout
,
"lxc.mount.auto ="
);
switch
(
c
->
auto_mounts
&
LXC_AUTO_PROC_MASK
)
{
case
LXC_AUTO_PROC_MIXED
:
fprintf
(
fout
,
" proc:mixed"
);
break
;
case
LXC_AUTO_PROC_RW
:
fprintf
(
fout
,
" proc:rw"
);
break
;
default:
break
;
}
switch
(
c
->
auto_mounts
&
LXC_AUTO_SYS_MASK
)
{
case
LXC_AUTO_SYS_RO
:
fprintf
(
fout
,
" sys:ro"
);
break
;
case
LXC_AUTO_SYS_RW
:
fprintf
(
fout
,
" sys:rw"
);
break
;
default:
break
;
}
switch
(
c
->
auto_mounts
&
LXC_AUTO_CGROUP_MASK
)
{
case
LXC_AUTO_CGROUP_MIXED
:
fprintf
(
fout
,
" cgroup:mixed"
);
break
;
case
LXC_AUTO_CGROUP_RO
:
fprintf
(
fout
,
" cgroup:ro"
);
break
;
case
LXC_AUTO_CGROUP_RW
:
fprintf
(
fout
,
" cgroup:rw"
);
break
;
case
LXC_AUTO_CGROUP_FULL_MIXED
:
fprintf
(
fout
,
" cgroup-full:mixed"
);
break
;
case
LXC_AUTO_CGROUP_FULL_RO
:
fprintf
(
fout
,
" cgroup-full:ro"
);
break
;
case
LXC_AUTO_CGROUP_FULL_RW
:
fprintf
(
fout
,
" cgroup-full:rw"
);
break
;
default:
break
;
}
fprintf
(
fout
,
"
\n
"
);
}
if
(
c
->
tty
)
if
(
c
->
tty
)
fprintf
(
fout
,
"lxc.tty = %d
\n
"
,
c
->
tty
);
fprintf
(
fout
,
"lxc.tty = %d
\n
"
,
c
->
tty
);
if
(
c
->
pts
)
if
(
c
->
pts
)
...
...
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