[CRIU] [PATCH v4 00/17] AutoFS mounts migration support

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Jan 7 08:09:10 PST 2016

This patch set adds suport for AutoFS mount migration, including:
1) Direct mounts
2) Indirect mounts
3) Catatonic mounts

Note: systemd AutoFS logic breaks with this migration, because device value of
new mount differs to the one, which systemd collected, when it was created the
mount. Because of it systemd ignors any requests from kernel.

v4: this version has significant changes in comparison to previous one:
1) Autofs data is migrated via AutofsEntry structure, which is nested to
MntEntry structure.
2) Dump stage is now only converts real pgrp into virtual one. All the collect
and control pipe check is done in "parse" stage.
3) All the autofs pipes are collected into a list. This list is checked on
packetized pipe dump to distinguish between autofs and other pipes (which are
still not supported).
4) Control pipe restore is now done by creating another pipe fd with custom
post_open callback instead of artificial files.
5) New list of objects and actors was introduced to create shared autofs data
after both mounts and shrared objects are restored.
6) Timeout restore and making mount catatonic is done right after mount pint
is created. It allows to avoid of autofs data objects creation and post_open
callback calling in case of catatonic mounts.

v3: fixed write pipe end restore, when it was closed.

More information about the CRIU mailing list