Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
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
zhul
criu
Commits
f0a86437
Commit
f0a86437
authored
Oct 11, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kerndat: Initialize necessary kerndats on restore
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
461a4667
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
cr-restore.c
cr-restore.c
+4
-0
kerndat.h
include/kerndat.h
+1
-0
kerndat.c
kerndat.c
+11
-7
No files found.
cr-restore.c
View file @
f0a86437
...
...
@@ -63,6 +63,7 @@
#include "vdso.h"
#include "stats.h"
#include "tun.h"
#include "kerndat.h"
#include "parasite-syscall.h"
...
...
@@ -1593,6 +1594,9 @@ int cr_restore_tasks(void)
if
(
init_stats
(
RESTORE_STATS
))
return
-
1
;
if
(
kerndat_init_rst
())
return
-
1
;
timing_start
(
TIME_RESTORE
);
if
(
cpu_init
()
<
0
)
...
...
include/kerndat.h
View file @
f0a86437
...
...
@@ -9,6 +9,7 @@
*/
int
kerndat_init
(
void
);
int
kerndat_init_rst
(
void
);
int
kerndat_get_dirty_track
(
void
);
extern
dev_t
kerndat_shmem_dev
;
...
...
kerndat.c
View file @
f0a86437
...
...
@@ -152,13 +152,17 @@ int kerndat_init(void)
ret
=
kerndat_get_shmemdev
();
if
(
!
ret
)
ret
=
kerndat_get_dirty_track
();
if
(
!
ret
)
/*
* Read TCP sysctls before anything else,
* since the limits we're interested in are
* not available inside namespaces.
*/
ret
=
tcp_read_sysctl_limits
();
return
ret
;
}
int
kerndat_init_rst
(
void
)
{
/*
* Read TCP sysctls before anything else,
* since the limits we're interested in are
* not available inside namespaces.
*/
return
tcp_read_sysctl_limits
();
}
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