mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-12 11:54:45 +00:00
Merge pull request #1441 from tych0/only-do-bind-mounts
c/r: only supply --ext-mount-map for bind mounts
This commit is contained in:
commit
4fbf4a3172
@ -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