[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp with sshfs

From: Mihai Lutescu
Subject: Re: Tramp with sshfs
Date: Wed, 18 Aug 2010 16:59:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)


That's exactly what I did the last weekend.

I crafted a toy tramp method that I called `ext', because it relays on
an 'external' mount method for most operations that deal with files.
That may be sshfs or whatever else.

My feeling is, that method is much faster then scp or other tramp method
that I tried. 

My implementation mounts sillently a directory "/tmp/address@hidden" to the
remote path "/ext:address@hidden:/".  That mapping is hardcoded right now,
but it's trivial to change it.

The only problem that I found after a few days of using it is the
expansion of "~" in remote paths like "/ext:address@hidden:~/".  That would
not too be to difficult to fix too, but requires to think about how to
map home directories to '/ext:' paths, which I was to lazy to.  For now
using a '~' will map to your local home directory.

Find attached the 'tramp-ext.el' method.

If you want to try that stuff, don't forget to modify mine
`tramp-login-program'.  (I use to use an expect script to launch
external processes)

I'm interested in your feedback.  If there is interest could volonteer
to maintain it.

Mihai LuĹŁescu

>>>>> "Michael" == Michael Albinus <address@hidden> writes on
>>>>> Tue, 17 Aug 2010 16:33:49 +0200:
    Michael> From: Michael Albinus <address@hidden>
    Michael> Subject: Re: Tramp with sshfs
    Michael> Date: Tue, 17 Aug 2010 16:33:49 +0200
    Michael> Andrea Crotti <address@hidden> writes:
    >> I was wondering it it would be possible to use tramp even if I'm
    >> actually using sshfs.
    >> Unfortunately tramp over ssh is a bit too slow (I also have the
    >> controlmaster activated, anything else I can do?), and sshfs is normally
    >> much nicer.
    Michael> For large files, scp might be faster. It depends.
    >> But when I launch a command I would like to get it executed on the
    >> remote machine where the files really are.
    >> How could I cheat this thing somehow?
    Michael> Not with the existing Tramp packages. One ould introduce a new 
    Michael> "sshfs", which works similar as in tramp-gvfs.el: mount the sshfs
    Michael> "filesystem" on a temporary mount point, and map silently file 
    Michael> like "/sshfs:host:/path/to/file" to "/mount_point/path/to/file".
    Michael> Processes on the remote host could be handled similar to the 
    Michael> for the "ssh" method.
    Michael> I will add an entry to Tramp's todo list. Unfortunately, I am 
short in
    Michael> time, if there is a volunteer ...
    >> Thanks,
    >> Andrea
    Michael> Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]