2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-01 23:05:39 +00:00

proc_parse: parse fdinfo to get pos and flags

We are going to parse fdinfo for getting mnt_id,
so we can take there pos and flags and don't call
fcntl and lseek for that.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-04-09 03:34:53 +04:00
committed by Pavel Emelyanov
parent d36e07aabe
commit 8bcffef6b9
3 changed files with 33 additions and 8 deletions

View File

@@ -153,6 +153,11 @@ union fdinfo_entries {
FanotifyMarkEntry ffy;
};
struct fdinfo_common {
off64_t pos;
int flags;
};
extern int parse_fdinfo(int fd, int type,
int (*cb)(union fdinfo_entries *e, void *arg), void *arg);
extern int parse_fdinfo_pid(int pid, int fd, int type,