"mount -a" mounts cifs shares multiple times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This is pretty much a duplicate of this report: https:/
Output of 'grep "cifs" /etc/fstab':
//network/path /mnt/backups cifs dom=xyz,
If I run 'mount -a' and then 'grep "cifs" /etc/mtab' I see 1 entry:
//network/path /mnt/backups cifs rw,relatime,
However, if I then re-run 'mount -a' and 'grep "cifs" /etc/mtab' I then see 2 (duplicated) entries:
//network/path /mnt/backups cifs rw,relatime,
//network/path /mnt/backups cifs rw,relatime,
Running 'mount -a' further times just adds additional duplicate entries into etc/mtab.
This means that in order to un-mount the folder, I have to run 'umount /mnt/backups' multiple times (as many times as it is duplicated in /etc/mtab to be precise).
Adding a trailing slash to the remote network path (i.e. //network/path/) as suggested in the linked bug report makes no difference (I still get duplicated entries in /etc/mtab).
-- SYSTEM INFO --
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Linux 4.4.0-122-generic #146-Ubuntu SMP Mon Apr 23 15:34:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cifs-utils:
Installed: 2:6.4-1ubuntu1.1
Candidate: 2:6.4-1ubuntu1.1
Version table:
*** 2:6.4-1ubuntu1.1 500
500 http://
100 /var/lib/
2:6.4-1ubuntu1 500
500 http://