]> git.eshelyaron.com Git - emacs.git/commit
Fix unmounting in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 3 Oct 2021 16:55:35 +0000 (18:55 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 3 Oct 2021 16:55:35 +0000 (18:55 +0200)
commit3863919a00e5f6c7cf9d4fe9e1b1a96fd5c18173
treed8a1987e34baa0e6eb6ccc5015cc865550850962
parent7a6d34cd1f1ea2eb053578521632420d6ff9c0db
Fix unmounting in Tramp

* doc/misc/tramp.texi (FUSE setup): Add tramp-fuse-unmount-on-cleanup.

* lisp/net/tramp.el (tramp-file-name-unify): New defun.
(tramp-file-name-equal-p):
* lisp/net/tramp-cache.el (tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-flush-connection-properties): Use it.

* lisp/net/tramp-fuse.el (tramp-fuse-get-fusermount): New defun.
(tramp-fuse-mount-points): New defvar.
(tramp-fuse-unmount): Use it.  Delete VEC from
`tramp-fuse-mount-points'.  Delete mount point.
(tramp-fuse-unmount-on-cleanup): New user option.
(tramp-fuse-cleanup, tramp-fuse-cleanup-all): New defuns.
(top): Adapt `tramp-fuse-unload-hook',
`tramp-cleanup-connection-hook',
`tramp-cleanup-all-connections-hook' and `kill-emacs-hook'.

* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Add VEC to `tramp-fuse-mount-points'.

* test/lisp/net/tramp-tests.el (tramp-fuse-unmount-on-cleanup): Declare.
(tramp-test39-make-lock-file-name): Use it.
doc/misc/tramp.texi
lisp/net/tramp-cache.el
lisp/net/tramp-fuse.el
lisp/net/tramp-rclone.el
lisp/net/tramp-sshfs.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el