mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
files: Add pb_ helpers
To not spread opencoded copying of PB entries and image structures we add a few pb_ helpers to be used until PB code completely merged. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
98acfbec28
commit
7c44757683
@@ -8,6 +8,7 @@
|
||||
#include "image.h"
|
||||
|
||||
#include "../protobuf/fdinfo.pb-c.h"
|
||||
#include "../protobuf/fown.pb-c.h"
|
||||
|
||||
struct pstree_item;
|
||||
struct file_desc;
|
||||
@@ -75,6 +76,10 @@ extern int send_fd_to_peer(int fd, struct fdinfo_list_entry *fle, int transport)
|
||||
extern int restore_fown(int fd, fown_t *fown);
|
||||
extern int rst_file_params(int fd, fown_t *fown, int flags);
|
||||
|
||||
extern int pb_restore_fown(int fd, FownEntry *fown);
|
||||
extern int pb_rst_file_params(int fd, FownEntry *fown, int flags);
|
||||
extern void pb_prep_fown(FownEntry *dst, const fown_t *src);
|
||||
|
||||
extern void show_saved_files(void);
|
||||
|
||||
extern int prepare_fds(struct pstree_item *me);
|
||||
|
Reference in New Issue
Block a user