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
267d974e
Commit
267d974e
authored
Jan 21, 2010
by
Michel Normand
Committed by
Daniel Lezcano
Jan 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo in restart and checkpoint
Signed-off-by:
Michel Normand
<
normand@fr.ibm.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
96819f4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
lxc.h
src/lxc/lxc.h
+2
-2
lxc_checkpoint.c
src/lxc/lxc_checkpoint.c
+4
-6
restart.c
src/lxc/restart.c
+2
-2
No files found.
src/lxc/lxc.h
View file @
267d974e
...
...
@@ -154,11 +154,11 @@ extern int lxc_checkpoint(const char *name, const char *statefile, int flags);
* Restart a container
* @name : the name of the container being restarted
* @statefile: string object from which the container is restarted
* @
rcfile: container configuration fil
e.
* @
conf: lxc_conf structur
e.
* @flags : restart flags (an ORed value)
* Returns 0 on success, < 0 otherwise
*/
extern
int
lxc_restart
(
const
char
*
,
const
char
*
,
const
char
*
,
int
);
extern
int
lxc_restart
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
,
int
);
/*
* Returns the version number of the library
...
...
src/lxc/lxc_checkpoint.c
View file @
267d974e
/*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 20
08
* (C) Copyright IBM Corp. 2007, 20
10
*
* Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com>
...
...
@@ -112,12 +112,10 @@ int main(int argc, char *argv[])
return
ret
;
ret
=
lxc_checkpoint
(
my_args
.
name
,
my_args
.
statefile
,
my_args
.
flags
);
if
(
ret
)
{
if
(
ret
)
ERROR
(
"failed to checkpoint '%s'"
,
my_args
.
name
);
return
ret
;
}
INFO
(
"'%s' checkpointed"
,
my_args
.
name
);
else
INFO
(
"'%s' checkpointed"
,
my_args
.
name
);
return
ret
;
}
src/lxc/restart.c
View file @
267d974e
/*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 20
08
* (C) Copyright IBM Corp. 2007, 20
10
*
* Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com>
...
...
@@ -25,7 +25,7 @@
lxc_log_define
(
lxc_restart
,
lxc
);
int
lxc_restart
(
const
char
*
name
,
const
char
*
statefile
,
const
char
*
rcfile
,
int
lxc_restart
(
const
char
*
name
,
const
char
*
statefile
,
struct
lxc_conf
*
conf
,
int
flags
)
{
return
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