mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +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>
27 lines
382 B
Protocol Buffer
27 lines
382 B
Protocol Buffer
enum fd_types {
|
|
UND = 0;
|
|
REG = 1;
|
|
PIPE = 2;
|
|
FIFO = 3;
|
|
INETSK = 4;
|
|
UNIXSK = 5;
|
|
EVENTFD = 6;
|
|
EVENTPOLL = 7;
|
|
INOTIFY = 8;
|
|
SIGNALFD = 9;
|
|
PACKETSK = 10;
|
|
TTY = 11;
|
|
FANOTIFY = 12;
|
|
NETLINKSK = 13;
|
|
NS = 14;
|
|
TUN = 15;
|
|
EXT = 16;
|
|
}
|
|
|
|
message fdinfo_entry {
|
|
required uint32 id = 1;
|
|
required uint32 flags = 2;
|
|
required fd_types type = 3;
|
|
required uint32 fd = 4;
|
|
}
|