From: samba-bugs@samba.org
To: cifs-qa@samba.org
Subject: [Bug 14498] New: Why is mount -a is not detecting an already mounted DFS share endpoint
Date: Wed, 16 Sep 2020 17:45:15 +0000 [thread overview]
Message-ID: <bug-14498-10630@https.bugzilla.samba.org/> (raw)
https://bugzilla.samba.org/show_bug.cgi?id=14498
Bug ID: 14498
Summary: Why is mount -a is not detecting an already mounted
DFS share endpoint
Product: CifsVFS
Version: 3.x
Hardware: x64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: user space tools
Assignee: jlayton@samba.org
Reporter: Chris@craftypenguins.net
QA Contact: cifs-qa@samba.org
Target Milestone: ---
I am trying to figure out why mount -a is not detecting an already mounted DFS
share endpoint. It works as expected on mount.cifs version 5.5 but not 6.7
Distributor ID: Debian
Description: Debian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
Mount.cifs version 6.7.
/etc/fstab
//ctserver6/ops_apps /mnt/ops_apps cifs
defaults,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
//ctserverbc/Public /mnt/ctserverbc cifs
defaults,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
#//ctserver3/ops /mnt/ops cifs
defaults,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
#//ctserver3/public /mnt/public cifs
defaults,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
//ctdomain.local/DFS_OPS/OPS /mnt/ops cifs
vers=2.1,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
//ctdomain.local/DFS_OPS/Public /mnt/public cifs
vers=2.1,credentials=/root/.smbcredentials,rw,users,_netdev,soft 0 0
If I leave off the vers=2.1 option it will create a new mount process and
duplicate in /proc/mounts :
/mnt/ops_apps : already mounted
/mnt/ctserverbc : already mounted
mount.cifs kernel mount options:
ip=192.168.111.10,unc=\\ctdomain.local\DFS_OPS,soft,user=ctlinux,prefixpath=OPS,pass=********
/mnt/ops : successfully mounted
mount.cifs kernel mount options:
ip=192.168.111.20,unc=\\ctdomain.local\DFS_OPS,soft,user=ctlinux,prefixpath=Public,pass=********
/mnt/public : successfully mounted
With vers=2.1 I get:
/mnt/ops_apps : already mounted
/mnt/ctserverbc : already mounted
mount.cifs kernel mount options:
ip=192.168.111.20,unc=\\ctdomain.local\DFS_OPS,vers=2.1,soft,user=ctlinux,prefixpath=OPS,pass=********
mount error(16): Device or resource busy Refer to the mount.cifs(8) manual page
(e.g. man mount.cifs)
mount.cifs kernel mount options:
ip=192.168.111.20,unc=\\ctdomain.local\DFS_OPS,vers=2.1,soft,user=ctlinux,prefixpath=Public,pass=********
mount error(16): Device or resource busy Refer to the mount.cifs(8) manual page
(e.g. man mount.cifs)
On 5.5 it will detect the DFS share is mounted already
--
Chris Pickett |
Linux Systems Engineer
--
You are receiving this mail because:
You are the QA Contact for the bug.
next reply other threads:[~2020-09-16 17:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-16 17:45 samba-bugs [this message]
2020-09-16 17:48 ` [Bug 14498] Why is mount -a is not detecting an already mounted DFS share endpoint samba-bugs
2020-09-18 4:08 ` samba-bugs
2020-09-21 15:00 ` samba-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-14498-10630@https.bugzilla.samba.org/ \
--to=samba-bugs@samba.org \
--cc=cifs-qa@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).