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
a1b731da
Commit
a1b731da
authored
Aug 11, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code: Brush up multi-line comments first line
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
5908c2eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
mount.c
mount.c
+9
-4
shmem.c
shmem.c
+2
-1
No files found.
mount.c
View file @
a1b731da
...
...
@@ -273,8 +273,11 @@ static int tmpfs_dump(struct mount_info *pm)
}
close
(
fd_img
);
/* tmpfs is in another mount namespace,
* a direct path is inaccessible */
/*
* tmpfs is in another mount namespace,
* a direct path is inaccessible
*/
snprintf
(
tmpfs_path
,
sizeof
(
tmpfs_path
),
"/proc/self/fd/%d"
,
fd
);
...
...
@@ -780,8 +783,10 @@ int mntns_collect_root(pid_t pid)
int
ret
;
char
path
[
PATH_MAX
+
1
];
/* If /proc/pid/root links on '/', it signs that a root of the task
* and a root of mntns is the same. */
/*
* If /proc/pid/root links on '/', it signs that a root of the task
* and a root of mntns is the same.
*/
pfd
=
open_pid_proc
(
pid
);
ret
=
readlinkat
(
pfd
,
"root"
,
path
,
sizeof
(
path
)
-
1
);
...
...
shmem.c
View file @
a1b731da
...
...
@@ -179,7 +179,8 @@ int get_shmem_fd(int pid, VmaEntry *vi)
if
(
si
->
fd
!=
-
1
)
return
dup
(
si
->
fd
);
/* The following hack solves problems:
/*
* The following hack solves problems:
* vi->pgoff may be not zero in a target process.
* This mapping may be mapped more then once.
* The restorer doesn't have snprintf.
...
...
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