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
1becda46
Commit
1becda46
authored
Mar 22, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #908 from tych0/fix-907
Fix 907
parents
f036e5ce
b7088add
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
criu.c
src/lxc/criu.c
+3
-3
criu.h
src/lxc/criu.h
+3
-3
lxc_checkpoint.c
src/lxc/lxc_checkpoint.c
+3
-3
lxccontainer.c
src/lxc/lxccontainer.c
+3
-3
No files found.
src/lxc/criu.c
View file @
1becda46
...
...
@@ -868,12 +868,12 @@ static bool do_dump(struct lxc_container *c, char *mode, char *directory,
}
}
bool
pre_dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
,
char
*
predump_dir
)
bool
__criu_
pre_dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
,
char
*
predump_dir
)
{
return
do_dump
(
c
,
"pre-dump"
,
directory
,
false
,
verbose
,
predump_dir
);
}
bool
dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
,
char
*
predump_dir
)
bool
__criu_
dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
,
char
*
predump_dir
)
{
char
path
[
PATH_MAX
];
int
ret
;
...
...
@@ -890,7 +890,7 @@ bool dump(struct lxc_container *c, char *directory, bool stop, bool verbose, cha
return
do_dump
(
c
,
"dump"
,
directory
,
stop
,
verbose
,
predump_dir
);
}
bool
restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
)
bool
__criu_
restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
)
{
pid_t
pid
;
int
status
,
nread
;
...
...
src/lxc/criu.h
View file @
1becda46
...
...
@@ -27,8 +27,8 @@
#include <lxc/lxccontainer.h>
bool
pre_dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
,
char
*
predump_dir
);
bool
dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
,
char
*
predump_dir
);
bool
restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
);
bool
__criu_
pre_dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
,
char
*
predump_dir
);
bool
__criu_
dump
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
,
char
*
predump_dir
);
bool
__criu_
restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
);
#endif
src/lxc/lxc_checkpoint.c
View file @
1becda46
...
...
@@ -121,7 +121,7 @@ Options :\n\
.
checker
=
my_checker
,
};
bool
checkpoint
(
struct
lxc_container
*
c
)
static
bool
checkpoint
(
struct
lxc_container
*
c
)
{
bool
ret
;
...
...
@@ -142,7 +142,7 @@ bool checkpoint(struct lxc_container *c)
return
true
;
}
bool
restore_finalize
(
struct
lxc_container
*
c
)
static
bool
restore_finalize
(
struct
lxc_container
*
c
)
{
bool
ret
=
c
->
restore
(
c
,
checkpoint_dir
,
verbose
);
if
(
!
ret
)
{
...
...
@@ -153,7 +153,7 @@ bool restore_finalize(struct lxc_container *c)
return
ret
;
}
bool
restore
(
struct
lxc_container
*
c
)
static
bool
restore
(
struct
lxc_container
*
c
)
{
if
(
c
->
is_running
(
c
))
{
fprintf
(
stderr
,
"%s is running, not restoring.
\n
"
,
my_args
.
name
);
...
...
src/lxc/lxccontainer.c
View file @
1becda46
...
...
@@ -3960,13 +3960,13 @@ static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd,
switch
(
cmd
)
{
case
MIGRATE_PRE_DUMP
:
ret
=
!
pre_dump
(
c
,
opts
->
directory
,
opts
->
verbose
,
opts
->
predump_dir
);
ret
=
!
__criu_
pre_dump
(
c
,
opts
->
directory
,
opts
->
verbose
,
opts
->
predump_dir
);
break
;
case
MIGRATE_DUMP
:
ret
=
!
dump
(
c
,
opts
->
directory
,
opts
->
stop
,
opts
->
verbose
,
opts
->
predump_dir
);
ret
=
!
__criu_
dump
(
c
,
opts
->
directory
,
opts
->
stop
,
opts
->
verbose
,
opts
->
predump_dir
);
break
;
case
MIGRATE_RESTORE
:
ret
=
!
restore
(
c
,
opts
->
directory
,
opts
->
verbose
);
ret
=
!
__criu_
restore
(
c
,
opts
->
directory
,
opts
->
verbose
);
break
;
default
:
ERROR
(
"invalid migrate command %u"
,
cmd
);
...
...
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