This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin-mount.el 1.4.4 and UNC mounts


The version of cygwin-mount.el I'm using (1.4.4) seems to skip UNC
mounts.  For instance, here is my mount table:

  1 osaka:mecklen$ mount
  C:\usr\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode)
  C:\usr\cygwin\bin on /usr/bin type system (binmode)
  C:\usr\cygwin\lib on /usr/lib type system (binmode)
  c:\usr\site-lisp on /usr/share/emacs/site-lisp/local type system (binmode)
  \\wolf\software on /software type system (binmode,noexec)
  \\fido\reftree on /reftree type system (binmode,noexec)
  C:\usr\cygwin on / type system (binmode)
  \\fido\code on /repository type system (binmode,noexec)
  c: on /c type user (binmode,noumount)
  d: on /d type user (binmode,noumount)
  p: on /p type user (binmode,noumount)
  r: on /r type user (binmode,noumount)

and after executing cygwin-mount-activate, here is my
cygwin-mount-table--internal:

  (pp cygwin-mount-table--internal)
  (("c:/usr/site-lisp/" . "/usr/share/emacs/site-lisp/local/")
   ("c:/usr/cygwin/usr/X11R6/lib/X11/fonts/" . "/usr/X11R6/lib/X11/fonts/")
   ("c:/usr/cygwin/lib/" . "/usr/lib/")
   ("c:/usr/cygwin/bin/" . "/usr/bin/")
   ("r:/" . "/r/")
   ("p:/" . "/p/")
   ("d:/" . "/d/")
   ("c:/" . "/c/")
   ("c:/usr/cygwin/" . "/"))

The variable cygwin-mount-parsing-regexp is 't' so it automatically
chooses the regexp to parse mount output.  Since my cygwin is entirely
up-to-date (updated daily) I'm using this regexp:

  (defconst cygwin-mount>=1.3.1-mount-regexp
    "^\\([a-z]:.*\\)[ \t]+on[ \t]+\\(.+\\) type \\(system\\|user\\)")

As you can see the regexp only searches for drive letter type mounts
(due to the "[a-z]:" part).  After customizing this to:

  "^\\(.*\\)[ \t]+on[ \t]+\\(.+\\) type \\(system\\|user\\)"

cygwin-mount.el now understands my unc mounts.  Should this change
be made in the original package? (With possibly a better regexp:
"^\\(\\([a-z]:.*\\)\\|\\(\\\\.*\\)\\)[ \t]+on[ \t]+\\(.+\\) type \\(system\\|user\\)").

Cheers and thanks for cygwin and cygwin-mount!
-- 
Robert


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]