mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 01:10:47 -08:00
Support existing sshfs and rclone mount points in Tramp
* lisp/net/tramp-fuse.el (tramp-fuse-mount-point, tramp-fuse-mounted-p): Support existing mount points.
This commit is contained in:
parent
438b1205c5
commit
abb11eb3a3
1 changed files with 5 additions and 2 deletions
|
|
@ -141,7 +141,7 @@
|
|||
|
||||
(defun tramp-fuse-mount-point (vec)
|
||||
"Return local mount point of VEC."
|
||||
(or (tramp-get-connection-property vec "mount-point")
|
||||
(or (tramp-get-file-property vec "/" "mount-point")
|
||||
(expand-file-name
|
||||
(concat
|
||||
tramp-temp-name-prefix
|
||||
|
|
@ -173,8 +173,11 @@ It has the same meaning as `remote-file-name-inhibit-cache'.")
|
|||
(tramp-set-file-property
|
||||
vec "/" "mounted"
|
||||
(when (string-match
|
||||
(rx bol (group (literal (tramp-fuse-mount-spec vec))) blank)
|
||||
(rx bol (group (literal (tramp-fuse-mount-spec vec)))
|
||||
" on " (group (+ (not blank))) blank)
|
||||
mount)
|
||||
(tramp-set-file-property
|
||||
vec "/" "mount-point" (match-string 2 mount))
|
||||
(match-string 1 mount)))))))
|
||||
|
||||
(defun tramp-fuse-get-fusermount ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue