mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
proc_parse: parse mnt_id from /proc/PID/fdinfo/FD
It will be used for restoring files from proper mounts. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
8bcffef6b9
commit
bed13a58ec
@@ -1021,7 +1021,8 @@ static int parse_fdinfo_pid_s(char *pid, int fd, int type,
|
||||
union fdinfo_entries entry;
|
||||
|
||||
if (fdinfo_field(str, "pos") ||
|
||||
fdinfo_field(str, "flags")) {
|
||||
fdinfo_field(str, "flags") ||
|
||||
fdinfo_field(str, "mnt_id")) {
|
||||
unsigned long long val;
|
||||
struct fdinfo_common *fdinfo = arg;
|
||||
|
||||
@@ -1035,6 +1036,8 @@ static int parse_fdinfo_pid_s(char *pid, int fd, int type,
|
||||
fdinfo->pos = val;
|
||||
else if (fdinfo_field(str, "flags"))
|
||||
fdinfo->flags = val;
|
||||
else if (fdinfo_field(str, "mnt_id"))
|
||||
fdinfo->mnt_id = val;
|
||||
|
||||
entry_met = true;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user