Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinks support, handle non-zero exit status, small log changes #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mihalicyn
Copy link

No description provided.

Kirill Tkhai and others added 5 commits March 4, 2020 12:34
Consider non-zero exit status of spfs similar to killed
status and do the same cleanups.

Signed-off-by: Kirill Tkhai <[email protected]>
Acked-by: Stanislav Kinsburskiy <[email protected]>
Stanislav Kinsburskiy says:

"SPFS manager has a special "--exit-with-spfs" options, which is used by CRIU.
 The idea of the option is simple: force SPFS manager to exit, when it has some
 SPFS processes among its children (i.e. spfs was mounted at least once),
 but all these processes have exited for whatever reason (which usually happens
 when restore has failed and spfs mounts where unmounted).
 Although it works in overall (main SPFS manager process exits), its children
 (responsible to SPFS replacement) may wait on FUTEX for "release" command
 for corresponding SPFS mount and thus never stop until they are killed".

1 spfs-manager
2   \_ spfs
3   \_ spfs-manager
4   \_ spfs
5   \_ spfs-manager

2 and 3 are pair of a mount, and 4 and 5 are pair of another mount.
The patch makes spfs-manager 1 kill 3 in case of 2 exited.

https://jira.sw.ru/browse/PSBM-80055

Signed-off-by: Kirill Tkhai <[email protected]>
Acked-by: Stanislav Kinsburskiy <[email protected]>
We already have support of symlinks in VZ CRIU.
Ghost symlinks / SPFS symlinks:
https://src.openvz.org/projects/OVZ/repos/criu/commits/de0e4ca6b8ba5daf6e5728391a14b1645934d4e4
Symlinks:
https://src.openvz.org/projects/OVZ/repos/criu/commits/5ed081ed6d112d6158e4c15a8358d4d8778c4588

It make sense to add symlinks support to SPFS

Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant