mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
mount: don't dump content for external mounts
External mounts are provided by an user and CRIU doesn't need to restore their content. https://github.com/xemul/criu/issues/299 Reported-by: Stéphane Graber Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
8d2ece7248
commit
c772fca0c8
1 changed files with 7 additions and 6 deletions
13
criu/mount.c
13
criu/mount.c
|
|
@ -1263,13 +1263,14 @@ static int dump_one_mountpoint(struct mount_info *pm, struct cr_img *img)
|
|||
if (me.fstype == FSTYPE__AUTO)
|
||||
me.fsname = pm->fsname;
|
||||
|
||||
if (!pm->external) {
|
||||
if (!pm->dumped && dump_one_fs(pm))
|
||||
return -1;
|
||||
|
||||
if (!pm->dumped && dump_one_fs(pm))
|
||||
return -1;
|
||||
|
||||
if (!fsroot_mounted(pm) &&
|
||||
pm->fstype->check_bindmount && pm->fstype->check_bindmount(pm))
|
||||
return -1;
|
||||
if (!fsroot_mounted(pm) &&
|
||||
pm->fstype->check_bindmount && pm->fstype->check_bindmount(pm))
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pm->mnt_id == CRTIME_MNT_ID) {
|
||||
pr_info("Skip dumping cr-time mountpoint: %s\n", pm->mountpoint);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue