[Devel] [PATCH libvzctl v2 2/3] vz-cpt: NFS port allow script added
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Wed May 18 09:43:51 PDT 2016
This script is used to allow back NFS-related ports on dump stage.
Without it CRIU won't be able to access NFS files.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
scripts/vz-cpt.in | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/vz-cpt.in b/scripts/vz-cpt.in
index f79f665..21a225e 100755
--- a/scripts/vz-cpt.in
+++ b/scripts/vz-cpt.in
@@ -56,6 +56,12 @@ function cg_dump_props {
return 0
}
+# NFS actions
+nfs_actions_path=/usr/libexec/criu/scripts/nfs-ports-allow.sh
+if [ -f "$nfs_actions_path" ]; then
+ nfs_actions="--action-script $nfs_actions_path"
+fi
+
mkdir -p $dumpdir &&
cg_dump_props $dumpdir &&
criu dump -v$CRIU_LOGLEVEL -o dump.log \
@@ -70,6 +76,7 @@ criu dump -v$CRIU_LOGLEVEL -o dump.log \
--action-script $action_script \
-t $VE_PID \
-D $dumpdir \
+ $nfs_actions \
$ext_mount_map \
$CRIU_EXTRA_ARGS
More information about the Devel
mailing list