[Devel] [PATCH] scripts: add /usr/libexec/criu/scripts/spfs-release-replace.sh to vz-rst

Igor Sukhih igor at virtuozzo.com
Thu May 26 00:58:12 PDT 2016


On 05/25/2016 07:18 PM, Stanislav Kinsburskiy wrote:
> 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).
>
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
> ---
>   scripts/vz-rst.in |   11 ++++++++---
>   1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/vz-rst.in b/scripts/vz-rst.in
> index 654cdd3..bfd804a 100755
> --- a/scripts/vz-rst.in
> +++ b/scripts/vz-rst.in
> @@ -78,9 +78,14 @@ 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"
> +spfs_actions=""
> +spfs_change_mode=/usr/libexec/criu/scripts/spfs-change-mode.sh
> +if [ -f "$spfs_change_mode" ]; then
> +	spfs_actions="--action-script $spfs_change_mode"
> +fi
> +spfs_release_replace=/usr/libexec/criu/scripts/spfs-release-replace.sh
> +if [ -f "$spfs_release_replace" ]; then
> +	spfs_actions="$spfs_actions --action-script $spfs_release_replace"
>   fi
>   
>
Pls redo to use 'for s in $spf_scripts; do'

--
  Igor


More information about the Devel mailing list