[Bug 658069] Re: Empty files written over gvfs by some editors

Krzysztof Klimonda kklimonda at syntaxhighlighted.com
Mon Oct 25 19:20:00 BST 2010


On Mon, 2010-10-25 at 17:23 +0000, yareckon wrote:
> Looks like there is a patch to gvfs upstream.  Looks like it it is still
> a bit of a workaround?
> https://bugzilla.gnome.org/show_bug.cgi?id=627567#c9  Tomas seems to
> indicate this is originally a problem with fuse?  Should we be worried
> about issues with other backends that use fuse?

Yes, it's possible that the bug affects all fuse backends and not only
the gvfs one -- but there has been no answer from the fuse developers so
fa as far as I know. The bug is bad enough that I believe we shouldn't
wait until fuse developers speak up and fix it (or work around the
problem), at least for now, directly in the gvfs.

-- 
Sent from Ubuntu

-- 
Empty files written over gvfs by some editors
https://bugs.launchpad.net/bugs/658069
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in GVFS: In Progress
Status in “gvfs” package in Ubuntu: Triaged
Status in “gvfs” source package in Maverick: New

Bug description:
Non-GIO programs truncate files when saving.

A bug in either FUSE or gvfs-fuse glue code has been discovered which causes some applications to truncate files to 0 bytes on save.

REGRESSION POTENTIAL: There is currently no patch for fuse, the upstream gvfs developer has proposed a patch that deals with truncate at the gvfs side. The patch has only been applied to Fedora 15, it hasn't yet been backported to neither Fedora 13 nor Fedora 14 so it hasn't been tested other than for it fixing the reported issue.

I guess we should upload it to natty first for preliminary testing but the data-loss is quite huge problem for people affected.

TEST CASE: A write-access to any gvfs powered remote share is required, the following options assume you have mounted it through the Places->Connect to Server... dialog (or using an existing bookmark).
Create a file with some content, for example by doing:
$ echo "test" > test.file
then edit the file using nano, add some more text and save (^X, Y, [ENTER]), after that the file is empty.
Same actions with proposed update should result in a file that has entered text.





More information about the Ubuntu-sponsors mailing list