mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
mnt: Add comments on tricky places
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
9
mount.c
9
mount.c
@@ -1541,6 +1541,10 @@ static struct mount_info *read_mnt_ns_img(void)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (nsid->id != root_item->ids->mnt_ns_id)
|
if (nsid->id != root_item->ids->mnt_ns_id)
|
||||||
|
/*
|
||||||
|
* If we have more than one (root) namespace,
|
||||||
|
* then we'll need the roots yard.
|
||||||
|
*/
|
||||||
if (create_mnt_roots())
|
if (create_mnt_roots())
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -1680,6 +1684,11 @@ static int populate_mnt_ns(struct mount_info *mis)
|
|||||||
if (nsid->nd != &mnt_ns_desc)
|
if (nsid->nd != &mnt_ns_desc)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make trees of all namespaces look the
|
||||||
|
* same, so that manual paths resolution
|
||||||
|
* works on them.
|
||||||
|
*/
|
||||||
nsid->mnt.mntinfo_tree = pms;
|
nsid->mnt.mntinfo_tree = pms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user