[Devel] [PATCH v2] scripts: add /usr/libexec/criu/scripts/spfs-release-replace.sh to vz-rst
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Thu May 26 03:06:09 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).
v2:
Use for loop over scripts
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
scripts/vz-rst.in | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/scripts/vz-rst.in b/scripts/vz-rst.in
index 654cdd3..bfff71a 100755
--- a/scripts/vz-rst.in
+++ b/scripts/vz-rst.in
@@ -78,10 +78,11 @@ 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"
-fi
+spfs_scripts="/usr/libexec/criu/scripts/spfs-change-mode.sh \
+ /usr/libexec/criu/scripts/spfs-release-replace.sh"
+for script in $spfs_scripts; do
+ [ -f "$script" ] && spfs_actions=$spfs_actions"--action-script $script "
+done
criu restore -v$CRIU_LOGLEVEL \
--file-locks \
More information about the Devel
mailing list