GNU bug report logs -
#32520
26.1; problem with CIFS mounts
Previous Next
Reported by: emacs <at> martins.cc
Date: Fri, 24 Aug 2018 16:26:01 UTC
Severity: minor
Tags: notabug
Found in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32520 in the body.
You can then email your comments to 32520 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 16:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
emacs <at> martins.cc
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 24 Aug 2018 16:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I automount windows shares under a common mountpoint, say /cifs.
When I cd to or references something like:
/cifs/<host>/<share>/path/to/file_or_dir
the windows share is mounted on
/cifs/<host>/<share>
and the process can get to .../path/to/file_or_dir.
When I visit one of those directories with emacs 26 (maybe
also files on that share), I get a bunch of syslog warnings
from the CIFS subsystem.
Sometimes they just say:
[608270.512407] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals-2.el
[608270.512744] CIFS VFS: cifs_mount failed w/return code = -2
[608270.517939] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals.el
[608270.518326] CIFS VFS: cifs_mount failed w/return code = -2
Other times it goes full looking for more stuff, like:
[600979.586694] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals-2.el
[600979.587097] CIFS VFS: cifs_mount failed w/return code = -2
[600979.597115] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals.el
[600979.597598] CIFS VFS: cifs_mount failed w/return code = -2
[600979.611685] CIFS VFS: BAD_NETWORK_NAME: \\host\.svn
[600979.612153] CIFS VFS: cifs_mount failed w/return code = -2
[600979.638103] CIFS VFS: BAD_NETWORK_NAME: \\host\.bzr
[600979.638532] CIFS VFS: cifs_mount failed w/return code = -2
[600979.648746] CIFS VFS: BAD_NETWORK_NAME: \\host\.git
[600979.649193] CIFS VFS: cifs_mount failed w/return code = -2
[600979.664967] CIFS VFS: BAD_NETWORK_NAME: \\host\.hg
[600979.665430] CIFS VFS: cifs_mount failed w/return code = -2
[600979.664967] CIFS VFS: BAD_NETWORK_NAME: \\host\_MTN
[600979.665430] CIFS VFS: cifs_mount failed w/return code = -2
I don't remember this happening for emacs 25.x.
It is clogging my syslog with bogus messages, as I do visit
lots of files and directories on remote windows share every
day.
-- Henrique
------------------------------------------------------------
In GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30)
of 2018-06-26 built on buildhw-10.phx2.fedoraproject.org
Windowing system distributor 'Fedora Project', version 11.0.11906000
System Description: Fedora release 28 (Twenty Eight)
Configured using:
'configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-dbus --with-gif
--with-jpeg --with-png --with-rsvg --with-tiff --with-xft
--with-xpm --with-x-toolkit=gtk3 --with-gpm=no
--with-xwidgets --with-modules
build_alias=x86_64-redhat-linux-gnu
host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF
-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-fexceptions -fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection'
LDFLAGS=-Wl,-z,relro
PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT
LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS
XWIDGETS LCMS2
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=none
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
shell-dirtrack-mode: t
display-time-mode: t
erc-services-mode: t
erc-networks-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
~/emacs/gnu/filladapt hides /usr/share/emacs/site-lisp/goodies/filladapt
~/emacs/gnu/matlab hides /usr/share/emacs/site-lisp/goodies/matlab
~/emacs/gnu/misc hides /usr/share/emacs/26.1/lisp/misc
~/emacs/gnu/mh-comp hides /usr/share/emacs/26.1/lisp/mh-e/mh-comp
~/emacs/gnu/mh-identity hides /usr/share/emacs/26.1/lisp/mh-e/mh-identity
~/emacs/gnu/mh-thread hides /usr/share/emacs/26.1/lisp/mh-e/mh-thread
/usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/26.1/lisp/gnus/spam-stat
/usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/26.1/lisp/gnus/nnir
/usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/26.1/lisp/gnus/nnnil
Features:
(shadow emacsbug rect etags xref project epa-file pcmpl-unix
conf-mode dired-aux vc-dispatcher vc-svn mhtml-mode css-mode
eww mm-url url-queue js advice cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs sgml-mode flyspell cal-move cal-menu calendar
cal-loaddefs mh-alias multi-prompt crm misearch
multi-isearch mh-search dabbrev y-mh-alias sh-script smie
executable calc-misc calc-alg calc-ext calc-menu calc
calc-loaddefs calc-macs shr-color color shr svg dom
browse-url canlock man ispell mh-identity quail mh-letter
mh-comp sendmail shell pcomplete comint ring ibuf-ext
ibuffer ibuffer-loaddefs mh-funcs sort ansi-color gnus-async
gnus-bcklg gnus-kill gnus-ml disp-table nndraft nnmh
cl-extra help-mode network-stream nsm starttls gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp
gnus-cache flow-fill term/xterm xterm qp mm-archive
mh-thread mail-extr mh-mime mh-gnus mh-show goto-addr
gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig
gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap
nnmail mail-source tls gnutls utf7 netrc nnoo parse-time
gnus-spec gnus-int gnus-win gnus-range gnus nnheader mh-seq
mh-inc hl-line mh-tool-bar mh-xface mh-utils mh-folder
which-func imenu mh-scan mh-e mh-compat mh-buffers
mh-loaddefs elec-pair server time erc-services erc-networks
erc-goodies erc erc-backend erc-compat thingatpt pp md4rd
tree-mode tree-widget wid-edit s json request url url-proxy
url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap dash hierarchy subr-x map
filladapt message rmc puny dired dired-loaddefs format-spec
rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
mailabbrev mail-utils gmm-utils mailheader finder-inf
package easymenu epg-config url-handlers url-parse
auth-source cl-seq eieio eieio-core eieio-loaddefs
password-cache url-vars seq byte-opt bytecomp byte-compile
cconv preview-latex emacs-goodies-loaddefs easy-mmode
clang-format cl-macs gv xml cl-loaddefs cl-lib auto-loads
tex-site time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting xwidget-internal
move-toolbar gtk x-toolkit x multi-tty make-network-process
emacs)
Memory information:
((conses 16 394990 64423)
(symbols 48 46151 1)
(miscs 40 855 1674)
(strings 32 110554 9416)
(string-bytes 1 3506280)
(vectors 16 54656)
(vector-slots 8 1673894 141522)
(floats 8 451 627)
(intervals 56 10270 2699)
(buffers 992 70))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 18:08:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 32520 <at> debbugs.gnu.org (full text, mbox):
Does it help to add /cifs to locate-dominating-stop-dir-regexp?
Something like net\\|afs -> net\\|afs\\|cifs
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 18:36:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 32520 <at> debbugs.gnu.org (full text, mbox):
> Does it help to add /cifs to locate-dominating-stop-dir-regexp?
> Something like net\\|afs -> net\\|afs\\|cifs
Doesn't seem to, if I did it correctly.
My locate-dominating-stop-dir-regexp was:
"\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"
and I made it be:
"\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|cifs\\|afs\\|\\.\\.\\.\\)/\\)\\'"
I've tried it in my current emacs session, and on a new
emacs -Q -nw session.
I do nfs mounts under /net, and visiting files or
directories under that don't log any errors.
-- Henrique
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 19:33:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 32520 <at> debbugs.gnu.org (full text, mbox):
> From: emacs <at> martins.cc
> Date: Fri, 24 Aug 2018 09:24:45 -0700
>
> I automount windows shares under a common mountpoint, say /cifs.
>
> When I cd to or references something like:
> /cifs/<host>/<share>/path/to/file_or_dir
> the windows share is mounted on
> /cifs/<host>/<share>
> and the process can get to .../path/to/file_or_dir.
>
> When I visit one of those directories with emacs 26 (maybe
> also files on that share), I get a bunch of syslog warnings
> from the CIFS subsystem.
>
> Sometimes they just say:
>
> [608270.512407] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals-2.el
> [608270.512744] CIFS VFS: cifs_mount failed w/return code = -2
> [608270.517939] CIFS VFS: BAD_NETWORK_NAME: \\host\.dir-locals.el
> [608270.518326] CIFS VFS: cifs_mount failed w/return code = -2
I guess Emacs tries to go up the directory tree too far, it should
stop at /cifs/<host>/<share/. But how should it know it isn't
supposed to go up from /cifs/<host>/<share/ ?
> It is clogging my syslog with bogus messages, as I do visit
> lots of files and directories on remote windows share every
> day.
Does it cause any other trouble?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 20:26:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 32520 <at> debbugs.gnu.org (full text, mbox):
> I guess Emacs tries to go up the directory tree too far,
> it should stop at /cifs/<host>/<share/. But how should it
> know it isn't supposed to go up from /cifs/<host>/<share>/ ?
Maybe with a variable (regexp) I could customize.
It could also tell by looking at the mount points, but
that's too time consuming.
>> It is clogging my syslog with bogus messages,
> Does it cause any other trouble?
No.
It is just annoying litter, that I may be able to filter.
-- Henrique
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 20:31:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 32520 <at> debbugs.gnu.org (full text, mbox):
Maybe you need "\\`/cif/[^/]+/[^/]+/\\'" or some other variant.
I think that is the right variable, but you may need to experiment to
find the correct setting.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 21:21:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 32520 <at> debbugs.gnu.org (full text, mbox):
> Maybe you need "\\`/cif/[^/]+/[^/]+/\\'" or some other
> variant. I think that is the right variable, but you may
> need to experiment to find the correct setting.
That variable is defined in files.el as (minus the doc string):
(defvar locate-dominating-stop-dir-regexp
(purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"))
I added this to my init, and executed:
(setq locate-dominating-stop-dir-regexp
(purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|[\\/]smb[\\/][^\\/]+[\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"))
Now the warnings about .dir-locals-2.el and .dir-locals.el
no longer show. These used to show when visiting
directories.
However the warnings for \\<host>\{.bzr,git,.hg,.svn} are
still there when visiting files. These seem to be
referenced in a few files, but because I've seen _MTN a
couple of times it may come from one of these
vc/vc-hooks.el.gz
vc/add-log.el.gz
Not sure yet how to shut those up.
-- Henrique
------------------------------------------------------------
On a side note
Why does this, the default setting
(purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"))
escape / as [\\/] for the first case
//[^/]+/
but not for the second
/[net|afs|...]/
?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 22:37:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 32520 <at> debbugs.gnu.org (full text, mbox):
On 24 August 2018 at 17:20, <emacs <at> martins.cc> wrote:
> However the warnings for \\<host>\{.bzr,git,.hg,.svn} are
> still there when visiting files.
I think you want to set vc-ignore-dir-regexp (to the same value as
locate-dominating-stop-dir-regexp) for this.
> On a side note
> Why does this, the default setting
> (purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"))
> escape / as [\\/] for the first case
Backslashes don't escape (at the regexp level) inside square brackets,
[\\/] just matches / or \. If it was written [/\\] it would mean the
same.
Perhaps translating to rx syntax would make it clearer:
(sequence string-start
(or
(sequence
(any "/" "\\")
(any "/" "\\")
(one-or-more
(not
(any "/" "\\")))
(any "/" "\\"))
(sequence "/"
(or "net" "afs" "...")
"/"))
string-end)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32520
; Package
emacs
.
(Fri, 24 Aug 2018 22:54:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 32520 <at> debbugs.gnu.org (full text, mbox):
> I think you want to set vc-ignore-dir-regexp (to the same value as
> locate-dominating-stop-dir-regexp) for this.
Yup, that does it, thanks!
I thought I had done something similar for XEmacs a long
time ago, but couldn't find it in my old XEmacs setup files.
I also don't recall this being a problem with Emacs < 26.
Thanks again,
-- Henrique
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 27 Aug 2018 20:48:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
32520 <at> debbugs.gnu.org and emacs <at> martins.cc
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 27 Aug 2018 20:48:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 25 Sep 2018 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.