2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

mount: Dump external bind-mounts with plugins

External bind mounts are those with source sitting outside of the
current FS view. Such are detected in validate_mounts(), so we
just go ahead and call plugins.

The plugin is provided with the mountpoint to decide whether it's
his or not (what else does the guy need?) and an ID with this it
can identify the mountpoint in /proc. The same ID will be used at
restore time to find the needed restore info.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-12-25 16:54:36 +04:00
parent db33a144d2
commit d21ff39aab
6 changed files with 39 additions and 8 deletions

View File

@@ -112,6 +112,7 @@ struct mount_info {
char *source;
char *options;
bool mounted;
bool need_plugin;
struct mount_info *next;
/* tree linkage */