mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
Here is nothing interecting. If a file can't be dumped by criu,
plugins are called. If one of plugins knows how to dump the file,
the file entry is marked as need_callback. On restore if we see
this mark, we execute plugins for restoring the file.
v2: Callbacks are called for all files, which are not supported by CRIU.
v3: Call plugins for a file instead of file descriptor. A few file
descriptors can be associated with one file.
v4: A file descriptor is opened in a callback. It's required for
restoring anon vmas.
v5: Add a separate type for unsupported files
v6: define FD_TYPES__UNSUPP
v7: s/unsupp/ext (external)
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
17 lines
342 B
C
17 lines
342 B
C
#ifndef __CR_PLUGIN_H__
|
|
#define __CR_PLUGIN_H__
|
|
|
|
#include "criu-plugin.h"
|
|
|
|
#define CR_PLUGIN_DEFAULT "/var/lib/criu/"
|
|
|
|
void cr_plugin_fini(void);
|
|
int cr_plugin_init(void);
|
|
|
|
int cr_plugin_dump_unix_sk(int fd, int id);
|
|
int cr_plugin_restore_unix_sk(int id);
|
|
|
|
int cr_plugin_dump_file(int fd, int id);
|
|
int cr_plugin_restore_file(int id);
|
|
|
|
#endif
|