* bug#32520: 26.1; problem with CIFS mounts
@ 2018-08-24 16:24 emacs
2018-08-24 18:06 ` Glenn Morris
2018-08-24 19:31 ` Eli Zaretskii
0 siblings, 2 replies; 9+ messages in thread
From: emacs @ 2018-08-24 16:24 UTC (permalink / raw)
To: 32520
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))
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 16:24 bug#32520: 26.1; problem with CIFS mounts emacs
@ 2018-08-24 18:06 ` Glenn Morris
2018-08-24 18:35 ` emacs
2018-08-24 19:31 ` Eli Zaretskii
1 sibling, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2018-08-24 18:06 UTC (permalink / raw)
To: emacs; +Cc: 32520
Does it help to add /cifs to locate-dominating-stop-dir-regexp?
Something like net\\|afs -> net\\|afs\\|cifs
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 18:06 ` Glenn Morris
@ 2018-08-24 18:35 ` emacs
2018-08-24 20:30 ` Glenn Morris
0 siblings, 1 reply; 9+ messages in thread
From: emacs @ 2018-08-24 18:35 UTC (permalink / raw)
To: Glenn Morris; +Cc: 32520
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 18:35 ` emacs
@ 2018-08-24 20:30 ` Glenn Morris
2018-08-24 21:20 ` emacs
0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2018-08-24 20:30 UTC (permalink / raw)
To: emacs; +Cc: 32520
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 20:30 ` Glenn Morris
@ 2018-08-24 21:20 ` emacs
2018-08-24 22:36 ` Noam Postavsky
0 siblings, 1 reply; 9+ messages in thread
From: emacs @ 2018-08-24 21:20 UTC (permalink / raw)
To: Glenn Morris; +Cc: 32520
> 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|...]/
?
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 21:20 ` emacs
@ 2018-08-24 22:36 ` Noam Postavsky
2018-08-24 22:53 ` emacs
0 siblings, 1 reply; 9+ messages in thread
From: Noam Postavsky @ 2018-08-24 22:36 UTC (permalink / raw)
To: emacs; +Cc: 32520
On 24 August 2018 at 17:20, <emacs@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)
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 22:36 ` Noam Postavsky
@ 2018-08-24 22:53 ` emacs
0 siblings, 0 replies; 9+ messages in thread
From: emacs @ 2018-08-24 22:53 UTC (permalink / raw)
To: Noam Postavsky; +Cc: 32520
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 16:24 bug#32520: 26.1; problem with CIFS mounts emacs
2018-08-24 18:06 ` Glenn Morris
@ 2018-08-24 19:31 ` Eli Zaretskii
2018-08-24 20:25 ` emacs
1 sibling, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2018-08-24 19:31 UTC (permalink / raw)
To: emacs; +Cc: 32520
> From: emacs@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?
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#32520: 26.1; problem with CIFS mounts
2018-08-24 19:31 ` Eli Zaretskii
@ 2018-08-24 20:25 ` emacs
0 siblings, 0 replies; 9+ messages in thread
From: emacs @ 2018-08-24 20:25 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 32520
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-08-24 22:53 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-24 16:24 bug#32520: 26.1; problem with CIFS mounts emacs
2018-08-24 18:06 ` Glenn Morris
2018-08-24 18:35 ` emacs
2018-08-24 20:30 ` Glenn Morris
2018-08-24 21:20 ` emacs
2018-08-24 22:36 ` Noam Postavsky
2018-08-24 22:53 ` emacs
2018-08-24 19:31 ` Eli Zaretskii
2018-08-24 20:25 ` emacs
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.