2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

mount: Collect mount root as well when parsing proc

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-05-12 03:45:47 +04:00
parent 79da538469
commit 90d0a6a0de
2 changed files with 2 additions and 2 deletions

View File

@@ -485,7 +485,6 @@ int parse_mountinfo(pid_t pid, struct proc_mountinfo *mi, int nr_elems)
while (fgets(str, sizeof(str), f)) {
unsigned int kmaj, kmin, parent_mnt_id;
char mnt_root[63];
int ret;
if ((i + 1) >= nr_elems) {
@@ -495,7 +494,7 @@ int parse_mountinfo(pid_t pid, struct proc_mountinfo *mi, int nr_elems)
ret = sscanf(str, "%i %i %u:%u %63s %63s",
&mi[i].mnt_id, &parent_mnt_id,
&kmaj, &kmin, mnt_root,
&kmaj, &kmin, mi[i].root,
mi[i].mountpoint);
if (ret != 6) {
pr_err("Bad format in %d mountinfo\n", pid);