> > Strategy (1) simply won't work, since there's no LINK call in sftp. > > What's the error returned by link? ENOSYS?
Yes. > (I want to implement for fuse the same falling-back behaviour as we > already have for FAT and SMB.) > > > Strategy (2) will work and is safe as long as these minimum versions > > are provided: > > Interesting. I guess I should have a look at sshfs again... Thinking a bit more about it, actually all versions should be safe wrt locking with O_EXCL. The problem is rather with non-exclusive create: if two opens race for creating the file, one of them may return EEXIST which is not a legal error in this case. So (2) should always be safe with sshfs. Miklos _______________________________________________ darcs-users mailing list [email protected] http://www.abridgegame.org/mailman/listinfo/darcs-users
