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
fd734188
Unverified
Commit
fd734188
authored
Sep 12, 2018
by
Christian Brauner
Committed by
GitHub
Sep 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2609 from 2xsec/bugfix
remove unused variables & function
parents
aec25005
8b7421f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
+0
-16
confile.c
src/lxc/confile.c
+0
-2
file_utils.c
src/lxc/file_utils.c
+0
-13
rsync.c
src/lxc/storage/rsync.c
+0
-1
No files found.
src/lxc/confile.c
View file @
fd734188
...
@@ -2257,7 +2257,6 @@ static int set_config_namespace_clone(const char *key, const char *value,
...
@@ -2257,7 +2257,6 @@ static int set_config_namespace_clone(const char *key, const char *value,
{
{
char
*
ns
,
*
token
;
char
*
ns
,
*
token
;
int
cloneflag
=
0
;
int
cloneflag
=
0
;
char
*
saveptr
=
NULL
;
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_namespace_clone
(
key
,
lxc_conf
,
data
);
return
clr_config_namespace_clone
(
key
,
lxc_conf
,
data
);
...
@@ -2293,7 +2292,6 @@ static int set_config_namespace_keep(const char *key, const char *value,
...
@@ -2293,7 +2292,6 @@ static int set_config_namespace_keep(const char *key, const char *value,
{
{
char
*
ns
,
*
token
;
char
*
ns
,
*
token
;
int
cloneflag
=
0
;
int
cloneflag
=
0
;
char
*
saveptr
=
NULL
;
if
(
lxc_config_value_empty
(
value
))
if
(
lxc_config_value_empty
(
value
))
return
clr_config_namespace_keep
(
key
,
lxc_conf
,
data
);
return
clr_config_namespace_keep
(
key
,
lxc_conf
,
data
);
...
...
src/lxc/file_utils.c
View file @
fd734188
...
@@ -239,18 +239,6 @@ int lxc_make_tmpfile(char *template, bool rm)
...
@@ -239,18 +239,6 @@ int lxc_make_tmpfile(char *template, bool rm)
return
fd
;
return
fd
;
}
}
/* In overlayfs, st_dev is unreliable. So on overlayfs we don't do the
* lxc_rmdir_onedev()
*/
static
bool
is_native_overlayfs
(
const
char
*
path
)
{
if
(
has_fs_type
(
path
,
OVERLAY_SUPER_MAGIC
)
||
has_fs_type
(
path
,
OVERLAYFS_SUPER_MAGIC
))
return
true
;
return
false
;
}
bool
is_fs_type
(
const
struct
statfs
*
fs
,
fs_type_magic
magic_val
)
bool
is_fs_type
(
const
struct
statfs
*
fs
,
fs_type_magic
magic_val
)
{
{
return
(
fs
->
f_type
==
(
fs_type_magic
)
magic_val
);
return
(
fs
->
f_type
==
(
fs_type_magic
)
magic_val
);
...
@@ -258,7 +246,6 @@ bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
...
@@ -258,7 +246,6 @@ bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
bool
has_fs_type
(
const
char
*
path
,
fs_type_magic
magic_val
)
bool
has_fs_type
(
const
char
*
path
,
fs_type_magic
magic_val
)
{
{
bool
has_type
;
int
ret
;
int
ret
;
struct
statfs
sb
;
struct
statfs
sb
;
...
...
src/lxc/storage/rsync.c
View file @
fd734188
...
@@ -47,7 +47,6 @@ int lxc_storage_rsync_exec_wrapper(void *data)
...
@@ -47,7 +47,6 @@ int lxc_storage_rsync_exec_wrapper(void *data)
int
lxc_rsync_exec_wrapper
(
void
*
data
)
int
lxc_rsync_exec_wrapper
(
void
*
data
)
{
{
int
ret
;
struct
rsync_data_char
*
args
=
data
;
struct
rsync_data_char
*
args
=
data
;
if
(
!
lxc_switch_uid_gid
(
0
,
0
))
if
(
!
lxc_switch_uid_gid
(
0
,
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