mount namespaces issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I posted this question in ubuntu mailing list a few days agoa , but
could not get a solution; I hope to find assistance here since this is
in fact a
filesystem question which is not specific to ubuntu.

I run Linux 3.5.0-17-generic kernel of in Ubuntu 12.10

I try to use mount namespaces with this Ubunutu.

I opened session 1 on one terminal:
session 1, terminal #1
mount | grep  sda3
gives nothing.

unshare -m /bin/bash
mount /dev/sda3 /mnt/sda3

mount | grep  sda3
shows
/dev/sda3 on /mnt/sda3 type ext3 (rw)

readlink  /proc/self/ns/mnt
mnt:[4026532114]

I opened session 2 on a second terminal:
session 2, terminal #2
In the beginning,
mount | grep  sda3
gives nothing.

after the mount done on the other terminal (#1, session 1)
mount | grep  sda3
/dev/sda3 on /mnt/sda3 type ext3 (rw)
readlink  /proc/self/ns/mnt
mnt:[4026531840]
so this is a different namespace then session 1.
And AFAIK I should not have seen ext3 mounted in this namespace.

Moreover:
1) I tried cat /proc/self/mountinfo | grep shared on a terminal before
making the test , and it did not find anything.

2)According to this post, the result should have been different.
And AFAIK, event this post is from 2009, this did not change and
still should be so.

see:
http://karelzak.blogspot.co.il/2009/12/unshare1.html


Regards,
Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux