Bug 464904 - mount creates duplicate cifs mounts
mount creates duplicate cifs mounts
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-01 05:48 EDT by Ed Avis
Modified: 2008-10-01 06:26 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-10-01 06:26:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ed Avis 2008-10-01 05:48:23 EDT
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 06:26:02 EDT
> 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.