[CRIU] [PATCH] scripts: save and restore target mount for autofs service
Cyrill Gorcunov
gorcunov at gmail.com
Fri Apr 29 03:45:31 PDT 2016
On Fri, Apr 29, 2016 at 01:38:49PM +0300, Stanislav Kinsburskiy wrote:
> This patch slightly changes the logic on systemd autofs service restart script:
>
> 1) It tries to bind-mount the mountpoint on top of autofs (if any) somewhere
> before service restart, and replace new mount point on top of autofs (if any)
> by the saved one after.
>
> 2) It doesn't exit in case of error, trying to recover as much as
> possible in case of failure instead and then continue services restarting.
>
> The reason for introducing new logic is that there can be some other,
> stateful, file system on top of autofs (say, tmpfs), which state was restore
> during migration.
> With current script this state will be lost, while this patch allows to
> preserve restored mount point after service restart.
>
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Should I pick it up into @stable? If so, please point the bug.
More information about the CRIU
mailing list