[Devel] [PATCH] scripts: add /usr/libexec/criu/scripts/spfs-release-replace.sh to vz-rst

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Wed May 25 09:18:16 PDT 2016


Add one more spfs-related restore script (this time for "post-restore" stage),
which is required to release spfs manager replace processes (they are waiting
for it to proceed with actual remount and replacement).

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 scripts/vz-rst.in |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/scripts/vz-rst.in b/scripts/vz-rst.in
index 654cdd3..bfd804a 100755
--- a/scripts/vz-rst.in
+++ b/scripts/vz-rst.in
@@ -78,9 +78,14 @@ if [ -f "$autofs_actions_path" ]; then
 fi
 
 # SPFS actions
-spfs_actions_path=/usr/libexec/criu/scripts/spfs-change-mode.sh
-if [ -f "$spfs_actions_path" ]; then
-	spfs_actions="--action-script $spfs_actions_path"
+spfs_actions=""
+spfs_change_mode=/usr/libexec/criu/scripts/spfs-change-mode.sh
+if [ -f "$spfs_change_mode" ]; then
+	spfs_actions="--action-script $spfs_change_mode"
+fi
+spfs_release_replace=/usr/libexec/criu/scripts/spfs-release-replace.sh
+if [ -f "$spfs_release_replace" ]; then
+	spfs_actions="$spfs_actions --action-script $spfs_release_replace"
 fi
 
 criu restore -v$CRIU_LOGLEVEL				\



More information about the Devel mailing list