mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
mount: dump one file system only once (v2)
A file system can be bind-mounted a few times and some of these mounts can be non-root. We need to find one of root mounts and dump it. v2: don't forget to check pm->dumped and pm->parent don't dump a root file system, it's always external for now. Reported-by: Saied Kazemi <saied@google.com> Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
697211908a
commit
494c044384
@@ -117,7 +117,10 @@ struct mount_info {
|
||||
struct fstype *fstype;
|
||||
char *source;
|
||||
char *options;
|
||||
bool mounted;
|
||||
union {
|
||||
bool mounted;
|
||||
bool dumped;
|
||||
};
|
||||
bool need_plugin;
|
||||
int is_file;
|
||||
bool is_ns_root;
|
||||
|
Reference in New Issue
Block a user