> > > 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.
Perhaps it's because of this check:
/* For safety we only read an undo file if the owner is equal to the
* owner of the text file. */
if (mch_stat((char *)orig_name, &st_orig) >= 0
&& mch_stat((char *)file_name, &st_undo) >= 0
&& st_orig.st_uid != st_undo.st_uid)
{
if (p_verbose > 0)
{
verbose_enter();
smsg((char_u *)_("Not reading undo file, owner differs: %s"),
file_name);
verbose_leave();
}
return;
}
You should get that message if you set 'verbose'.
--
Why doesn't Tarzan have a beard?
/// 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 ///
--
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:
Post a Comment