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
ee94a8b5
Unverified
Commit
ee94a8b5
authored
Feb 15, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: use set_config_path_item() for most cgroup layout modifiers
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
7e925736
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
confile.c
src/lxc/confile.c
+4
-7
No files found.
src/lxc/confile.c
View file @
ee94a8b5
...
@@ -1825,7 +1825,7 @@ static int set_config_cgroup_dir(const char *key, const char *value,
...
@@ -1825,7 +1825,7 @@ static int set_config_cgroup_dir(const char *key, const char *value,
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_cgroup_dir
(
key
,
lxc_conf
,
NULL
);
return
clr_config_cgroup_dir
(
key
,
lxc_conf
,
NULL
);
return
set_config_
string
_item
(
&
lxc_conf
->
cgroup_meta
.
dir
,
value
);
return
set_config_
path
_item
(
&
lxc_conf
->
cgroup_meta
.
dir
,
value
);
}
}
static
int
set_config_cgroup_monitor_dir
(
const
char
*
key
,
const
char
*
value
,
static
int
set_config_cgroup_monitor_dir
(
const
char
*
key
,
const
char
*
value
,
...
@@ -1834,8 +1834,7 @@ static int set_config_cgroup_monitor_dir(const char *key, const char *value,
...
@@ -1834,8 +1834,7 @@ static int set_config_cgroup_monitor_dir(const char *key, const char *value,
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_cgroup_monitor_dir
(
key
,
lxc_conf
,
NULL
);
return
clr_config_cgroup_monitor_dir
(
key
,
lxc_conf
,
NULL
);
return
set_config_string_item
(
&
lxc_conf
->
cgroup_meta
.
monitor_dir
,
return
set_config_path_item
(
&
lxc_conf
->
cgroup_meta
.
monitor_dir
,
value
);
value
);
}
}
static
int
set_config_cgroup_monitor_pivot_dir
(
const
char
*
key
,
const
char
*
value
,
static
int
set_config_cgroup_monitor_pivot_dir
(
const
char
*
key
,
const
char
*
value
,
...
@@ -1844,8 +1843,7 @@ static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *valu
...
@@ -1844,8 +1843,7 @@ static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *valu
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_cgroup_monitor_pivot_dir
(
key
,
lxc_conf
,
NULL
);
return
clr_config_cgroup_monitor_pivot_dir
(
key
,
lxc_conf
,
NULL
);
return
set_config_string_item
(
&
lxc_conf
->
cgroup_meta
.
monitor_pivot_dir
,
return
set_config_path_item
(
&
lxc_conf
->
cgroup_meta
.
monitor_pivot_dir
,
value
);
value
);
}
}
static
int
set_config_cgroup_container_dir
(
const
char
*
key
,
const
char
*
value
,
static
int
set_config_cgroup_container_dir
(
const
char
*
key
,
const
char
*
value
,
...
@@ -1855,8 +1853,7 @@ static int set_config_cgroup_container_dir(const char *key, const char *value,
...
@@ -1855,8 +1853,7 @@ static int set_config_cgroup_container_dir(const char *key, const char *value,
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_cgroup_container_dir
(
key
,
lxc_conf
,
NULL
);
return
clr_config_cgroup_container_dir
(
key
,
lxc_conf
,
NULL
);
return
set_config_string_item
(
&
lxc_conf
->
cgroup_meta
.
container_dir
,
return
set_config_path_item
(
&
lxc_conf
->
cgroup_meta
.
container_dir
,
value
);
value
);
}
}
static
int
set_config_cgroup_container_inner_dir
(
const
char
*
key
,
static
int
set_config_cgroup_container_inner_dir
(
const
char
*
key
,
...
...
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