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
9e390993
Commit
9e390993
authored
Jul 11, 2016
by
Christian Brauner
Committed by
GitHub
Jul 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1077 from adrianreber/init
c/r: initialize migrate_opts properly
parents
c7d5c3e5
ebb088e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
lxccontainer.c
src/lxc/lxccontainer.c
+13
-9
No files found.
src/lxc/lxccontainer.c
View file @
9e390993
...
@@ -3988,11 +3988,13 @@ WRAP_API_3(int, lxcapi_migrate, unsigned int, struct migrate_opts *, unsigned in
...
@@ -3988,11 +3988,13 @@ WRAP_API_3(int, lxcapi_migrate, unsigned int, struct migrate_opts *, unsigned in
static
bool
do_lxcapi_checkpoint
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
)
static
bool
do_lxcapi_checkpoint
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
stop
,
bool
verbose
)
{
{
struct
migrate_opts
opts
=
{
struct
migrate_opts
opts
;
.
directory
=
directory
,
.
stop
=
stop
,
memset
(
&
opts
,
0
,
sizeof
(
opts
));
.
verbose
=
verbose
,
};
opts
.
directory
=
directory
;
opts
.
stop
=
stop
;
opts
.
verbose
=
verbose
;
return
!
do_lxcapi_migrate
(
c
,
MIGRATE_DUMP
,
&
opts
,
sizeof
(
opts
));
return
!
do_lxcapi_migrate
(
c
,
MIGRATE_DUMP
,
&
opts
,
sizeof
(
opts
));
}
}
...
@@ -4001,10 +4003,12 @@ WRAP_API_3(bool, lxcapi_checkpoint, char *, bool, bool)
...
@@ -4001,10 +4003,12 @@ WRAP_API_3(bool, lxcapi_checkpoint, char *, bool, bool)
static
bool
do_lxcapi_restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
)
static
bool
do_lxcapi_restore
(
struct
lxc_container
*
c
,
char
*
directory
,
bool
verbose
)
{
{
struct
migrate_opts
opts
=
{
struct
migrate_opts
opts
;
.
directory
=
directory
,
.
verbose
=
verbose
,
memset
(
&
opts
,
0
,
sizeof
(
opts
));
};
opts
.
directory
=
directory
;
opts
.
verbose
=
verbose
;
return
!
do_lxcapi_migrate
(
c
,
MIGRATE_RESTORE
,
&
opts
,
sizeof
(
opts
));
return
!
do_lxcapi_migrate
(
c
,
MIGRATE_RESTORE
,
&
opts
,
sizeof
(
opts
));
}
}
...
...
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