On Sun, Mar 13, 2011 at 6:03 PM, richard -rw- weinberger <richard.weinberger@gmail.com> wrote:
Hi,
bind mounts seem not to work as expected on OpenSUSE 11.4.
E.g: $ mount /home /mnt -o bind $ mount | grep mnt /dev/sda1 on /mnt type ext3 (rw,relatime,errors=continue,user_xattr,acl,commit=600,barrier=0,data=ordered) $ mount | grep sda1 /dev/sda1 on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,commit=600,barrier=0,data=ordered) /dev/sda1 on /mnt type ext3 (rw,relatime,errors=continue,user_xattr,acl,commit=600,barrier=0,data=ordered)
mount shows me the for both / and /mnt /dev/sda1 as device.
The expected output is: /home on /mnt type none (rw,bind)
Update: On 11.4 /etc/mtab is a symlink to /proc/self/mounts. This causes the first issue.
The read-only bind mount also does not work. $ mount -o bind,ro /home /mnt mount: warning: /mnt seems to be mounted read-write. $ mount | grep mnt /dev/sda1 on /mnt type ext3 (rw,relatime,errors=continue,user_xattr,acl,commit=600,barrier=0,data=ordered)
I can reproduce this on OpenSUSE 11.4 using kernel-desktop-2.6.37.1-1.2.2.i586, kernel-vanilla-2.6.37.1-1.2.2.i586 and kernel-vanilla-2.6.37.3-16.1.i586 (from tumbleweed repo)
But, on a CentOS 5.5 box with a hand compiled 2.6.37.3 kernel everything works as expected.
Now I'm confused, is this a OpenSUSE or a kernel issue? Any ideas?
-- Thanks, //richard
-- Thanks, //richard -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org