[Devel] [PATCH libvzctl v2 1/3] vz-rst: SPFS to stub mode script added
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Wed May 18 09:43:44 PDT 2016
This script is used to switch all the spfs mounts to Stub mode during restore.
Required to make sure, that all requests to NFS files will stuck once
processes are released.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
scripts/vz-rst.in | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/vz-rst.in b/scripts/vz-rst.in
index da0126d..e6851c7 100755
--- a/scripts/vz-rst.in
+++ b/scripts/vz-rst.in
@@ -74,6 +74,12 @@ if [ -f "$autofs_actions_path" ]; then
autofs_actions="--action-script $autofs_actions_path"
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
+
criu restore -v$CRIU_LOGLEVEL \
--file-locks \
--tcp-established \
@@ -90,6 +96,7 @@ criu restore -v$CRIU_LOGLEVEL \
--cgroup-root /$VEID \
$ext_mount_map \
$autofs_actions \
+ $spfs_actions \
$veth_args
if [ $? -eq 0 ]; then
More information about the Devel
mailing list