[Devel] [PATCH libvzctl 3/4] vz-rst: SPFS to stub mode script added
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Fri May 13 10:32:12 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..0e9b884 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
+# NFS actions
+nfs_actions_path=/root/fuse-stub-fs/scripts/spfs-change-mode.sh
+if [ -f "$nfs_actions_path" ]; then
+ nfs_actions="--action-script $nfs_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 \
+ $nfs_actions \
$veth_args
if [ $? -eq 0 ]; then
More information about the Devel
mailing list