From 8ef1d378bfc823f37164ac1fa76167bd9cb6fb3b Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 23 Apr 2014 02:47:42 +0400 Subject: [PATCH] mnt: Add comments on tricky places Signed-off-by: Pavel Emelyanov --- mount.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mount.c b/mount.c index 7dac23942..db3c34eec 100644 --- a/mount.c +++ b/mount.c @@ -1541,6 +1541,10 @@ static struct mount_info *read_mnt_ns_img(void) continue; 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()) return NULL; @@ -1680,6 +1684,11 @@ static int populate_mnt_ns(struct mount_info *mis) if (nsid->nd != &mnt_ns_desc) continue; + /* + * Make trees of all namespaces look the + * same, so that manual paths resolution + * works on them. + */ nsid->mnt.mntinfo_tree = pms; }