mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
If a file like /proc/20/mountinfo is open, but 20 is a zombie (or doesn't exist any more), we can't read this file at all, so a link remap won't work. Instead, we add a new remap, called the dead process remap, which forks a TASK_HELPER as that dead pid so that the restore task can open the new /proc/20/mountinfo instead. This commit also adds a new stage CR_STATE_RESTORE_SHARED. Since new TASK_HELPERS are added when loading the shared resource images, we need to wait to start forking tasks until after these resources are loaded. v2: fix a mutex bug Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
12 lines
202 B
Protocol Buffer
12 lines
202 B
Protocol Buffer
enum remap_type {
|
|
LINKED = 0;
|
|
GHOST = 1;
|
|
PROCFS = 2;
|
|
};
|
|
|
|
message remap_file_path_entry {
|
|
required uint32 orig_id = 1;
|
|
required uint32 remap_id = 2;
|
|
optional remap_type remap_type = 3;
|
|
}
|