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 <skinsbur...@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 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel