Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Micha Lenk
-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

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Thomas Bushnell BSG
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

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Micha Lenk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Thomas, Thomas Bushnell BSG wrote: The logic expressed in the #gnucash discussion is bogus. Errors like ENLNK or EMLNK would also prevent link but not prevent copying. There is no harm in at least trying copying if EROFS comes in, and the

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Thomas Bushnell BSG
The logic expressed in the #gnucash discussion is bogus. Errors like ENLNK or EMLNK would also prevent link but not prevent copying. There is no harm in at least trying copying if EROFS comes in, and the code shouldn't assume that every error on link will be an error on copying. Thomas --

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Micha Lenk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Thomas, Thomas Bushnell BSG wrote: But also, there is most certainly an sshfs bug here. It has no business whatsoever returning ENOSYS in response to a link call. I tried to figure out who is doing wrong here. If at all it's the fault of fuse,

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-28 Thread Thomas Bushnell BSG
On Thu, 2008-08-28 at 23:39 +0200, Micha Lenk wrote: There are far better error codes to return. ... what error codes listed in the link(2) manpage do you think of? The best one that comes to my mind is EPERM: The filesystem containing oldpath and newpath does not support the creation of

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-27 Thread Bas Wijnen
Package: gnucash Version: 2.2.6-1 Severity: grave Justification: causes data loss 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

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-27 Thread Micha Lenk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 forwarded 496807 http://bugzilla.gnome.org/show_bug.cgi?id=549595 thanks Hi Bas, thank you for your feedback on Gnucash. I have forwarded your report to the upstream bug tracker as http://bugzilla.gnome.org/show_bug.cgi?id=549595 Regards Micha

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-27 Thread Thomas Bushnell BSG
On Wed, 2008-08-27 at 17:46 +0200, Bas Wijnen wrote: Package: gnucash Version: 2.2.6-1 Severity: grave Justification: causes data loss 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

Bug#496807: gnucash: silently removes main files while trying to save without lock

2008-08-27 Thread Bas Wijnen
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