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
2656d231
Commit
2656d231
authored
Oct 12, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce function name
Cosmetic change by reducing the function names. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
abbfd20b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
conf.c
src/lxc/conf.c
+11
-13
No files found.
src/lxc/conf.c
View file @
2656d231
...
...
@@ -198,7 +198,6 @@ static int run_script(const char *name, const char *section,
INFO
(
"Executing script '%s' for container '%s', config section '%s'"
,
script
,
name
,
section
);
va_start
(
ap
,
script
);
while
((
p
=
va_arg
(
ap
,
char
*
)))
size
+=
strlen
(
p
);
...
...
@@ -278,8 +277,7 @@ static int find_fstype_cb(char* buffer, void *data)
return
1
;
}
static
int
setup_mount_unknow_fs
(
const
char
*
rootfs
,
const
char
*
target
,
int
mntopt
)
static
int
mount_unknow_fs
(
const
char
*
rootfs
,
const
char
*
target
,
int
mntopt
)
{
int
i
;
...
...
@@ -324,7 +322,7 @@ static int setup_mount_unknow_fs(const char *rootfs,
return
-
1
;
}
static
int
setup_
mount_rootfs_dir
(
const
char
*
rootfs
,
const
char
*
target
)
static
int
mount_rootfs_dir
(
const
char
*
rootfs
,
const
char
*
target
)
{
return
mount
(
rootfs
,
target
,
"none"
,
MS_BIND
|
MS_REC
,
NULL
);
}
...
...
@@ -361,7 +359,7 @@ out:
return
ret
;
}
static
int
setup_
mount_rootfs_file
(
const
char
*
rootfs
,
const
char
*
target
)
static
int
mount_rootfs_file
(
const
char
*
rootfs
,
const
char
*
target
)
{
struct
dirent
dirent
,
*
direntp
;
struct
loop_info64
loinfo
;
...
...
@@ -409,7 +407,7 @@ static int setup_mount_rootfs_file(const char *rootfs, const char *target)
ret
=
setup_lodev
(
rootfs
,
fd
,
&
loinfo
);
if
(
!
ret
)
ret
=
setup_
mount_unknow_fs
(
path
,
target
,
0
);
ret
=
mount_unknow_fs
(
path
,
target
,
0
);
close
(
fd
);
break
;
...
...
@@ -421,12 +419,12 @@ static int setup_mount_rootfs_file(const char *rootfs, const char *target)
return
ret
;
}
static
int
setup_
mount_rootfs_block
(
const
char
*
rootfs
,
const
char
*
target
)
static
int
mount_rootfs_block
(
const
char
*
rootfs
,
const
char
*
target
)
{
return
setup_
mount_unknow_fs
(
rootfs
,
target
,
0
);
return
mount_unknow_fs
(
rootfs
,
target
,
0
);
}
static
int
setup_
mount_rootfs
(
const
char
*
rootfs
,
const
char
*
target
)
static
int
mount_rootfs
(
const
char
*
rootfs
,
const
char
*
target
)
{
char
absrootfs
[
MAXPATHLEN
];
struct
stat
s
;
...
...
@@ -438,9 +436,9 @@ static int setup_mount_rootfs(const char *rootfs, const char *target)
int
type
;
rootfs_cb
cb
;
}
rtfs_type
[]
=
{
{
S_IFDIR
,
setup_
mount_rootfs_dir
},
{
S_IFBLK
,
setup_
mount_rootfs_block
},
{
S_IFREG
,
setup_
mount_rootfs_file
},
{
S_IFDIR
,
mount_rootfs_dir
},
{
S_IFBLK
,
mount_rootfs_block
},
{
S_IFREG
,
mount_rootfs_file
},
};
if
(
!
realpath
(
rootfs
,
absrootfs
))
{
...
...
@@ -708,7 +706,7 @@ static int setup_rootfs(const struct lxc_rootfs *rootfs)
return
-
1
;
}
if
(
setup_
mount_rootfs
(
rootfs
->
path
,
rootfs
->
mount
))
{
if
(
mount_rootfs
(
rootfs
->
path
,
rootfs
->
mount
))
{
ERROR
(
"failed to mount rootfs"
);
return
-
1
;
}
...
...
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