** Description changed: When I remount a mounted samba share as read-only, it gets mounted a second time, according to /etc/mtab Thought the mount point is only read-only accessible from now on, it is still listed as rw AND ro. - - Problem exists on two different machines running an upgraded 12.04 - - Tested with to different smb shares coming from two different machines (WinServer and Debian) + - Problem exists on two different machines running an upgraded 12.04 + - Tested with two different smb shares coming from two different machines (WinServer and Debian) - This doesn't affect loop mounts. (Tested with a mkfs.ext4 formatted and mounted file) Ubuntu Version: root / # lsb_release -rd Description: Ubuntu 12.04.1 LTS Release: 12.04 root / # uname -a Linux MACHINE 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux What I expected to happen: The mount point should be listed only once in /etc/mtab - When umounting it, it should completely disappear from /etc/mtab on the first try. + When umounting it, it should completely disappear from /etc/mtab on the first try. What happened instead: The mount point appears a second time in /etc/mtab When I umount it still appears in mtab as mounted rw but is no longer accessible When I then try to umount again I get an error that it is not mounted any longer, which also makes the entry in mtab disappear. Steps to reproduce 1.) Get 12.04 and update it. 2.) mount any samba share via "mount -t cifs..." or smbmount or "mount -t smbfs..." 3.) remount it with "mount -o remount -r /path/to/mountpoint" 4.) cat "/etc/mtab" 5.) try to write to "/path/to/mountpoint" (which should not be possible) 6.) umount "/path/to/mountpoint" 7.) "cat /etc/mtab" 8.) try to access /path/to/mountpoint again (which was not possible to me) 9.) umount again (which should threw an error at me) 10.) "cat /etc/mtab" a last time If any more information is needed just tell me. + + /Edit: Typo
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1048575 Title: remounting a samba share as read-only mounts it twice To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1048575/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs