mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 12:04:24 +00:00
code: Brush up multi-line comments first line
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
5908c2eb45
commit
a1b731dac3
2 changed files with 11 additions and 5 deletions
13
mount.c
13
mount.c
|
|
@ -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);
|
||||
|
|
|
|||
3
shmem.c
3
shmem.c
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue