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:
committed by
Pavel Emelyanov
parent
d36e07aabe
commit
8bcffef6b9
@@ -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,
|
||||
|
Reference in New Issue
Block a user