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
62aebd99
Unverified
Commit
62aebd99
authored
Nov 28, 2017
by
AustinReichert
Committed by
Christian Brauner
Dec 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/lxc_copy: remove internal logging
Signed-off-by:
AustinReichert
<
austinskyreichert@utexas.edu
>
parent
2a82ac7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
lxc_copy.c
src/lxc/tools/lxc_copy.c
+4
-10
No files found.
src/lxc/tools/lxc_copy.c
View file @
62aebd99
...
@@ -50,8 +50,6 @@
...
@@ -50,8 +50,6 @@
#include <../include/getsubopt.h>
#include <../include/getsubopt.h>
#endif
#endif
lxc_log_define
(
lxc_copy_ui
,
lxc
);
enum
mnttype
{
enum
mnttype
{
LXC_MNT_BIND
,
LXC_MNT_BIND
,
LXC_MNT_AUFS
,
LXC_MNT_AUFS
,
...
@@ -380,8 +378,6 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath,
...
@@ -380,8 +378,6 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath,
return
-
1
;
return
-
1
;
}
}
INFO
(
"Created %s as %s of %s
\n
"
,
newname
,
task
?
"snapshot"
:
"copy"
,
c
->
name
);
lxc_container_put
(
clone
);
lxc_container_put
(
clone
);
return
0
;
return
0
;
...
@@ -479,12 +475,10 @@ destroy_and_put:
...
@@ -479,12 +475,10 @@ destroy_and_put:
static
int
do_clone_rename
(
struct
lxc_container
*
c
,
char
*
newname
)
static
int
do_clone_rename
(
struct
lxc_container
*
c
,
char
*
newname
)
{
{
if
(
!
c
->
rename
(
c
,
newname
))
{
if
(
!
c
->
rename
(
c
,
newname
))
{
ERROR
(
"Error: Renaming container %s to %s failed
\n
"
,
c
->
name
,
newname
);
fprintf
(
stderr
,
"Error: Renaming container %s to %s failed
\n
"
,
c
->
name
,
newname
);
return
-
1
;
return
-
1
;
}
}
INFO
(
"Renamed container %s to %s
\n
"
,
c
->
name
,
newname
);
return
0
;
return
0
;
}
}
...
@@ -640,7 +634,7 @@ static int parse_aufs_mnt(char *mntstring, enum mnttype type)
...
@@ -640,7 +634,7 @@ static int parse_aufs_mnt(char *mntstring, enum mnttype type)
else
if
(
len
==
2
)
/* aufs=src:dest */
else
if
(
len
==
2
)
/* aufs=src:dest */
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
else
else
INFO
(
"Excess elements in mount specificatio
n"
);
printf
(
"Excess elements in mount specification
\
n
"
);
if
(
!
m
->
dest
)
if
(
!
m
->
dest
)
goto
err
;
goto
err
;
...
@@ -694,7 +688,7 @@ static int parse_bind_mnt(char *mntstring, enum mnttype type)
...
@@ -694,7 +688,7 @@ static int parse_bind_mnt(char *mntstring, enum mnttype type)
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
m
->
options
=
strdup
(
mntarray
[
2
]);
m
->
options
=
strdup
(
mntarray
[
2
]);
}
else
{
}
else
{
INFO
(
"Excess elements in mount specificatio
n"
);
printf
(
"Excess elements in mount specification
\
n
"
);
}
}
if
(
!
m
->
dest
)
if
(
!
m
->
dest
)
...
@@ -763,7 +757,7 @@ static int parse_ovl_mnt(char *mntstring, enum mnttype type)
...
@@ -763,7 +757,7 @@ static int parse_ovl_mnt(char *mntstring, enum mnttype type)
else
if
(
len
==
2
)
/* overlay=src:dest */
else
if
(
len
==
2
)
/* overlay=src:dest */
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
m
->
dest
=
construct_path
(
mntarray
[
1
],
false
);
else
else
INFO
(
"Excess elements in mount specificatio
n"
);
printf
(
"Excess elements in mount specification
\
n
"
);
if
(
!
m
->
dest
)
if
(
!
m
->
dest
)
goto
err
;
goto
err
;
...
...
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