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
f52d53c5
Commit
f52d53c5
authored
Mar 26, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix: Make more descriptive error logging for ext socket restore failure
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
21c663dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
crtools.c
crtools.c
+1
-1
sockets.h
include/sockets.h
+2
-0
sk-unix.c
sk-unix.c
+11
-8
No files found.
crtools.c
View file @
f52d53c5
...
...
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
{
"log-file"
,
required_argument
,
0
,
'o'
},
{
"namespaces"
,
required_argument
,
0
,
'n'
},
{
"root"
,
required_argument
,
0
,
'r'
},
{
"ext-unix-sk"
,
no_argument
,
0
,
'x'
},
{
USK_EXT_PARAM
,
no_argument
,
0
,
'x'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
SK_EST_PARAM
,
no_argument
,
0
,
42
},
{
"close"
,
required_argument
,
0
,
43
},
...
...
include/sockets.h
View file @
f52d53c5
...
...
@@ -83,4 +83,6 @@ static inline int sk_decode_shutdown(int val)
return
hows
[
val
];
}
#define USK_EXT_PARAM "ext-unix-sk"
#endif
/* __CR_SOCKETS_H__ */
sk-unix.c
View file @
f52d53c5
...
...
@@ -819,18 +819,21 @@ int resolve_unix_peers(void)
peer
=
find_unix_sk_by_ino
(
ui
->
ue
->
peer
);
if
(
!
peer
)
{
pr_err
(
"FATAL: Peer %#x unresolved for %#x
\n
"
,
ui
->
ue
->
peer
,
ui
->
ue
->
ino
);
return
-
1
;
}
/*
* Connect to external sockets requires
* special option to be passed.
*/
if
(
peer
&&
(
peer
->
ue
->
uflags
&
USK_EXTERN
)
&&
!
(
opts
.
ext_unix_sk
))
peer
=
NULL
;
if
(
!
peer
)
{
pr_err
(
"FATAL: Peer %#x unresolved for %#x
\n
"
,
ui
->
ue
->
peer
,
ui
->
ue
->
ino
);
if
((
peer
->
ue
->
uflags
&
USK_EXTERN
)
&&
!
(
opts
.
ext_unix_sk
))
{
pr_err
(
"External socket found in image. "
"Consider using the --"
USK_EXT_PARAM
" option "
"to allow restoring it.
\n
"
);
return
-
1
;
}
...
...
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