[CRIU] [PATCH 2/4] files: Pass stat information into fd_id_generate
Pavel Emelyanov
xemul at parallels.com
Tue Feb 4 08:03:14 PST 2014
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
file-ids.c | 2 +-
files.c | 2 +-
include/file-ids.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/file-ids.c b/file-ids.c
index d98e5f2..70fabc8 100644
--- a/file-ids.c
+++ b/file-ids.c
@@ -31,7 +31,7 @@ u32 fd_id_generate_special(struct stat *st)
return fd_tree.subid++;
}
-int fd_id_generate(pid_t pid, FdinfoEntry *fe)
+int fd_id_generate(pid_t pid, FdinfoEntry *fe, struct stat *st)
{
u32 id;
struct kid_elem e;
diff --git a/files.c b/files.c
index 509d13b..363703f 100644
--- a/files.c
+++ b/files.c
@@ -169,7 +169,7 @@ int do_dump_gen_file(struct fd_parms *p, int lfd,
e.fd = p->fd;
e.flags = p->fd_flags;
- ret = fd_id_generate(p->pid, &e);
+ ret = fd_id_generate(p->pid, &e, &p->stat);
if (ret == 1) /* new ID generated */
ret = ops->dump(lfd, e.id, p);
diff --git a/include/file-ids.h b/include/file-ids.h
index 317617d..bd838ef 100644
--- a/include/file-ids.h
+++ b/include/file-ids.h
@@ -13,7 +13,7 @@
struct fdinfo_entry;
struct stat;
-extern int fd_id_generate(pid_t pid, FdinfoEntry *fe);
+extern int fd_id_generate(pid_t pid, FdinfoEntry *fe, struct stat *st);
extern u32 fd_id_generate_special(struct stat *);
extern void fd_id_show_tree(void);
--
1.8.4.2
More information about the CRIU
mailing list