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
c78de02c
Commit
c78de02c
authored
Apr 02, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #938 from hallyn/2016-04-02/bdev.2
use more accurate bdev_type name for rootfs.bdev
parents
f0a71c4a
b3b8c97f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
bdev.c
src/lxc/bdev/bdev.c
+2
-2
conf.c
src/lxc/conf.c
+1
-1
conf.h
src/lxc/conf.h
+2
-2
confile.c
src/lxc/confile.c
+4
-4
No files found.
src/lxc/bdev/bdev.c
View file @
c78de02c
...
...
@@ -858,8 +858,8 @@ static const struct bdev_type *bdev_query(struct lxc_conf *conf, const char *src
{
int
i
;
if
(
conf
->
rootfs
.
bdev
)
return
get_bdev_by_name
(
conf
->
rootfs
.
bdev
);
if
(
conf
->
rootfs
.
bdev
_type
)
return
get_bdev_by_name
(
conf
->
rootfs
.
bdev
_type
);
for
(
i
=
0
;
i
<
numbdevs
;
i
++
)
{
int
r
;
...
...
src/lxc/conf.c
View file @
c78de02c
...
...
@@ -4142,7 +4142,7 @@ void lxc_conf_free(struct lxc_conf *conf)
free
(
conf
->
console
.
log_path
);
free
(
conf
->
console
.
path
);
free
(
conf
->
rootfs
.
mount
);
free
(
conf
->
rootfs
.
bdev
);
free
(
conf
->
rootfs
.
bdev
_type
);
free
(
conf
->
rootfs
.
options
);
free
(
conf
->
rootfs
.
path
);
free
(
conf
->
logfile
);
...
...
src/lxc/conf.h
View file @
c78de02c
...
...
@@ -220,13 +220,13 @@ struct lxc_console {
* @path : the rootfs source (directory or device)
* @mount : where it is mounted
* @options : mount options
* @bev
: optional backing store type
* @bev
_type
: optional backing store type
*/
struct
lxc_rootfs
{
char
*
path
;
char
*
mount
;
char
*
options
;
char
*
bdev
;
char
*
bdev
_type
;
};
/*
...
...
src/lxc/confile.c
View file @
c78de02c
...
...
@@ -73,7 +73,7 @@ static int config_fstab(const char *, const char *, struct lxc_conf *);
static
int
config_rootfs
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_rootfs_mount
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_rootfs_options
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_rootfs_bdev
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_rootfs_bdev
_type
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_pivotdir
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_utsname
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
config_hook
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
lxc_conf
);
...
...
@@ -132,7 +132,7 @@ static struct lxc_config_t config[] = {
{
"lxc.mount"
,
config_fstab
},
{
"lxc.rootfs.mount"
,
config_rootfs_mount
},
{
"lxc.rootfs.options"
,
config_rootfs_options
},
{
"lxc.rootfs.bdev"
,
config_rootfs_bdev
},
{
"lxc.rootfs.bdev"
,
config_rootfs_bdev
_type
},
{
"lxc.rootfs"
,
config_rootfs
},
{
"lxc.pivotdir"
,
config_pivotdir
},
{
"lxc.utsname"
,
config_utsname
},
...
...
@@ -1856,7 +1856,7 @@ static int config_rootfs_options(const char *key, const char *value,
return
config_string_item
(
&
lxc_conf
->
rootfs
.
options
,
value
);
}
static
int
config_rootfs_bdev
(
const
char
*
key
,
const
char
*
value
,
static
int
config_rootfs_bdev
_type
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
)
{
if
(
!
is_valid_bdev_type
(
value
))
{
...
...
@@ -1864,7 +1864,7 @@ static int config_rootfs_bdev(const char *key, const char *value,
return
-
1
;
}
return
config_string_item
(
&
lxc_conf
->
rootfs
.
bdev
,
value
);
return
config_string_item
(
&
lxc_conf
->
rootfs
.
bdev
_type
,
value
);
}
static
int
config_pivotdir
(
const
char
*
key
,
const
char
*
value
,
...
...
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