Wednesday, October 20, 2010

Re: persistent undo stops working on sshfs if undodir is set

* Bram Moolenaar (Bram@Moolenaar.net) wrote:
>
> Mattias Fliesberg wrote:
>
> > Well, sshfs is a fuse based filesystem for ssh. I just mount a remote
> > dir like this...
> >
> > $ sshfs hostname: directory
> >
> > I set undodir and friends like this.
> >
> > if exists("&undofile")
> > set undodir=/tmp
> > set undofile
> > set undolevels=1000
> > set undoreload=10000
> > endif
> >
> > And if undodir is not inside the mounted dir it doesn't seem to work.
> > I'm saying this because if I set undodir inside the sshfs mounted
> > directory it actually works for that specific mount.
> >
> > And like I said in my other mail this only seem to happen for OpenSSH <=5.1,
> > at least. This is on the server side, the client I tested from always ran
> > 5.5.
>
> I guess the problem is in the filesystem implementation. Perhaps Vim
> does some system calls that this filesystem isn't prepared for. Strace
> may help finding out what happens.
>
> --
> "To whoever finds this note -
> I have been imprisoned by my father who wishes me to marry
> against my will. Please please please please come and rescue me.
> I am in the tall tower of Swamp Castle."
> SIR LAUNCELOT's eyes light up with holy inspiration.
> "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
>
> /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\ download, build and distribute -- http://www.A-A-P.org ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

I ran some strace tests on this after vim hade initially created the
undofile. The only real difference I saw between the two is that after
a stat call has been made on the undofile the one that works does an
open on it and the other one doesn't. I could send the strace outputs
if necessary.

Can't anyone else reproduce this?

// Mattias

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: