Activity log for bug #1048575

Date Who What changed Old value New value Message
2012-09-10 10:30:38 Sebastian Stickel bug added bug
2012-09-10 12:27:56 Ubuntu Foundations Team Bug Bot tags mount read-only remount samba smb bot-comment mount read-only remount samba smb
2012-09-11 11:46:16 Launchpad Janitor ubuntu: status New Confirmed
2012-09-11 13:42:59 Sebastian Stickel description 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) - 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. 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. 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 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. 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