mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
One device can be mounted a few times, so files are identical only, if they have the same mnt_id. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
21 lines
474 B
C
21 lines
474 B
C
#ifndef __CR_FILE_IDS_H__
|
|
#define __CR_FILE_IDS_H__
|
|
|
|
#include "compiler.h"
|
|
#include "asm/types.h"
|
|
#include "rbtree.h"
|
|
|
|
#include "protobuf/fdinfo.pb-c.h"
|
|
|
|
#define FD_PID_INVALID (-2U)
|
|
#define FD_DESC_INVALID (-3U)
|
|
|
|
struct fdinfo_entry;
|
|
struct stat;
|
|
|
|
struct fd_parms;
|
|
extern int fd_id_generate(pid_t pid, FdinfoEntry *fe, struct fd_parms *p);
|
|
extern int fd_id_generate_special(struct fd_parms *p, u32 *id);
|
|
extern void fd_id_show_tree(void);
|
|
|
|
#endif /* __CR_FILE_IDS_H__ */
|