Wow, 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/u...@host" to the remote path "/ext:u...@host:/". 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:u...@host:~/". 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. Regards, Mihai LuĹŁescu >>>>> "Michael" == Michael Albinus <[email protected]> writes on >>>>> Tue, 17 Aug 2010 16:33:49 +0200: Michael> From: Michael Albinus <[email protected]> Michael> Subject: Re: Tramp with sshfs Michael> Date: Tue, 17 Aug 2010 16:33:49 +0200 Michael> Michael> Andrea Crotti <[email protected]> writes: Michael> >> 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> Michael> For large files, scp might be faster. It depends. Michael> >> 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> Michael> Not with the existing Tramp packages. One ould introduce a new method Michael> "sshfs", which works similar as in tramp-gvfs.el: mount the sshfs Michael> "filesystem" on a temporary mount point, and map silently file names Michael> like "/sshfs:host:/path/to/file" to "/mount_point/path/to/file". Michael> Michael> Processes on the remote host could be handled similar to the handling Michael> for the "ssh" method. Michael> Michael> I will add an entry to Tramp's todo list. Unfortunately, I am short in Michael> time, if there is a volunteer ... Michael> >> Thanks, >> Andrea Michael> Michael> Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
