On Thu, 2008-08-28 at 20:34 +0200, Micha Lenk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> Bas Wijnen wrote:
> > On Wed, Aug 27, 2008 at 01:02:56PM -0700, Thomas Bushnell BSG wrote:
> >>> I was trying to use gnucash over sshfs, to allow several machines to
> >>> handle the same file.  It complained that it was unable to get a lock,
> >>> and so couldn't prevent simultaneous writes.  This was no problem,
> >>> because there isn't another person working on them.  For the rest,
> >>> everything seemed to work fine.
> >>>
> >>> However, when trying to reopen the file, I found that it had not been
> >>> written, but instead it was deleted.  So not only did I lose the work of
> >>> the session, but it actually deleted my previous work as well.
> >>
> >> Are you sure this isn't a bug in sshfs?
> > 
> > No, I'm not sure about that.  But from gnucash's behaviour, it seems
> > that sshfs doesn't support locking (which I suppose is a known missing
> > feature, but I didn't check), and gnucash handles that situation very
> > badly.

Micha's got the gnucash fix, which I'll upload to Debian too.

But also, there is most certainly an sshfs bug here.  It has no business
whatsoever returning ENOSYS in response to a link call.  There are far
better error codes to return.

Thomas





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to