Bug 464904 - mount creates duplicate cifs mounts
Summary: mount creates duplicate cifs mounts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-01 09:48 UTC by Ed Avis
Modified: 2008-10-01 10:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-01 10:26:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ed Avis 2008-10-01 09:48:23 UTC
You can mount the same cifs share at the same mount point several times over!

# mount | grep prod-dr_log
# mount -t cifs //wcl-prod-dr/log /mnt/prod-dr_log -o user=xxx -o password=yyy
# mount | grep prod-dr_log
//wcl-prod-dr/log on /mnt/prod-dr_log type cifs (rw,mand)
# mount -t cifs //wcl-prod-dr/log /mnt/prod-dr_log -o user=x -o password=yyy
# mount | grep prod-dr_log
//wcl-prod-dr/log on /mnt/prod-dr_log type cifs (rw,mand)
//wcl-prod-dr/log on /mnt/prod-dr_log type cifs (rw,mand)

Expected results: the second mount command should fail saying this share is already mounted at this location.

In general, it shouldn't be possible to have the same mount point appear twice in /etc/mtab or the corresponding kernel data.

Comment 1 Karel Zak 2008-10-01 10:26:02 UTC
> In general, it shouldn't be possible to have the same mount point appear twice
> in /etc/mtab or the corresponding kernel data.

This is standard Linux feature.


Note You need to log in before you can comment on or make changes to this bug.