diff --git a/criu/mount.c b/criu/mount.c index ef50d0fa2..844f52e4d 100644 --- a/criu/mount.c +++ b/criu/mount.c @@ -1674,13 +1674,12 @@ 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 (!mnt_is_external_bind(pm) && !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);