mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 07:23:23 +00:00
c/r: only supply --ext-mount-map for bind mounts
The rest of the mounts can be restored normally. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
This commit is contained in:
parent
c5bce6ee3c
commit
19d2422b99
@ -334,8 +334,18 @@ static void exec_criu(struct criu_opts *opts)
|
||||
goto err;
|
||||
|
||||
while (getmntent_r(mnts, &mntent, buf, sizeof(buf))) {
|
||||
char *fmt, *key, *val;
|
||||
char *fmt, *key, *val, *mntdata;
|
||||
char arg[2 * PATH_MAX + 2];
|
||||
unsigned long flags;
|
||||
|
||||
if (parse_mntopts(mntent.mnt_opts, &flags, &mntdata) < 0)
|
||||
goto err;
|
||||
|
||||
free(mntdata);
|
||||
|
||||
/* only add --ext-mount-map for actual bind mounts */
|
||||
if (!(flags & MS_BIND))
|
||||
continue;
|
||||
|
||||
if (strcmp(opts->action, "dump") == 0) {
|
||||
fmt = "/%s:%s";
|
||||
|
Loading…
Reference in New Issue
Block a user