Projects STRLCPY criu Commits 7cae16e9
🤬
  • mount: do collect_mntinfo of external mount namespace with no for_dump

    When we collect external mount namespace we don't want to dump mounts in
    it, so lets remove this flag. This way we can e.g. use for_dump in
    ->parse() callbacks to separate in-container mounts from others.
    
    This only affects rare case of `--ext-mount-map auto` but to be
    absolutely correct let's fix it anyway.
    
    Signed-off-by: Pavel Tikhomirov <[email protected]>
  • Loading...
  • Pavel Tikhomirov committed with Andrei Vagin 1 year ago
    7cae16e9
    1 parent 69befdde
  • ■ ■ ■ ■
    criu/mount.c
    skipped 825 lines
    826 826   
    827 827   for (ns = ns_ids; ns->next; ns = ns->next)
    828 828   if (ns->type == NS_CRIU && ns->nd == &mnt_ns_desc) {
    829  - if (!ns->mnt.mntinfo_list && !collect_mntinfo(ns, true))
     829 + if (!ns->mnt.mntinfo_list && !collect_mntinfo(ns, false))
    830 830   break;
    831 831   return ns;
    832 832   }
    skipped 3408 lines
Please wait...
Page is in error, reload to recover