|
From: Miklos S. <mi...@sz...> - 2006-01-29 14:17:37
|
> I found some strange and annoying behaviour when using sshfs. > Overwriting an existing file with move seems impossible. > > when using a tiny test program called test.sh > > #!/bin/sh > > echo a > a > > cp a b > > mv a b > > ls > on ext3 i get: > > $ ./test.sh > > b test.sh > on sshfs i get: > > $ ./test.sh > > mv: cannot move `a' to `b': Operation not permitted > > a b test.sh > > I have this problem with fuse + sshfs from debian sarge as well as with > current fuse (2.5.1) and sshfs (1.4) (debian kernel 2.4.27). > > This behaviour could be the reason that gedit can not save files, > unless they are deleted (by hand) on the filesystem before. > > Any solutions ? -oworkaround=rename The resulting rename() operation is no longer atomic, like it is defined in the standard. For a proper fix the sftp protocol and sftp server would need to be updated. Miklos |