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
bbf17398
Commit
bbf17398
authored
Mar 27, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Use O_DUMP flags for single image opening
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
ad1aed62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cr-dump.c
cr-dump.c
+4
-4
No files found.
cr-dump.c
View file @
bbf17398
...
@@ -1149,7 +1149,7 @@ static int dump_pstree(pid_t pid, const struct list_head *pstree_list)
...
@@ -1149,7 +1149,7 @@ static int dump_pstree(pid_t pid, const struct list_head *pstree_list)
pr_info
(
"Dumping pstree (pid: %d)
\n
"
,
pid
);
pr_info
(
"Dumping pstree (pid: %d)
\n
"
,
pid
);
pr_info
(
"----------------------------------------
\n
"
);
pr_info
(
"----------------------------------------
\n
"
);
pstree_fd
=
open_image
(
CR_FD_PSTREE
,
O_
RDWR
|
O_CREAT
|
O_EXCL
);
pstree_fd
=
open_image
(
CR_FD_PSTREE
,
O_
DUMP
);
if
(
pstree_fd
<
0
)
if
(
pstree_fd
<
0
)
return
-
1
;
return
-
1
;
...
@@ -1214,7 +1214,7 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, pid_t pid)
...
@@ -1214,7 +1214,7 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, pid_t pid)
core
->
tc
.
task_state
=
TASK_ALIVE
;
core
->
tc
.
task_state
=
TASK_ALIVE
;
core
->
tc
.
exit_code
=
0
;
core
->
tc
.
exit_code
=
0
;
fd_core
=
open_image
(
CR_FD_CORE
,
O_
RDWR
|
O_CREAT
|
O_EXCL
,
pid
);
fd_core
=
open_image
(
CR_FD_CORE
,
O_
DUMP
,
pid
);
if
(
fd_core
<
0
)
if
(
fd_core
<
0
)
goto
err_free
;
goto
err_free
;
...
@@ -1241,7 +1241,7 @@ static int dump_one_zombie(const struct pstree_item *item,
...
@@ -1241,7 +1241,7 @@ static int dump_one_zombie(const struct pstree_item *item,
core
->
tc
.
task_state
=
TASK_DEAD
;
core
->
tc
.
task_state
=
TASK_DEAD
;
core
->
tc
.
exit_code
=
pps
->
exit_code
;
core
->
tc
.
exit_code
=
pps
->
exit_code
;
fd_core
=
open_image
(
CR_FD_CORE
,
O_
RDWR
|
O_CREAT
|
O_EXCL
,
item
->
pid
);
fd_core
=
open_image
(
CR_FD_CORE
,
O_
DUMP
,
item
->
pid
);
if
(
fd_core
<
0
)
if
(
fd_core
<
0
)
goto
err_free
;
goto
err_free
;
...
@@ -1425,7 +1425,7 @@ static int cr_dump_shmem(void)
...
@@ -1425,7 +1425,7 @@ static int cr_dump_shmem(void)
if
(
err
)
if
(
err
)
goto
err_unmap
;
goto
err_unmap
;
fd
=
open_image
(
CR_FD_SHMEM_PAGES
,
O_
WRONLY
|
O_CREAT
,
si
->
shmid
);
fd
=
open_image
(
CR_FD_SHMEM_PAGES
,
O_
DUMP
,
si
->
shmid
);
if
(
fd
<
0
)
if
(
fd
<
0
)
goto
err_unmap
;
goto
err_unmap
;
...
...
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