After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608908 - gvfsd-smb: file content messed when using low-level write utilities (echo)
gvfsd-smb: file content messed when using low-level write utilities (echo)
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: smb backend
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2010-02-03 18:18 UTC by potter000
Modified: 2011-10-17 11:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description potter000 2010-02-03 18:18:15 UTC
Hello,

I have recently faced a VERY strange behaviour with GVFS. This behaviour was not present before I updated Ubuntu Jaunty (Gnome 2.26, GVFS 1.2.2) to Karmic (Gnome 2.28.1,GVFS 1.4.2)

Steps to reproduce behaviour:
1. Mount a GVFS-SMB share (via smb://someserver/someshare)
2. Open terminal and cd to this share
3. Run commands:
user@host:~/.gvfs/someshare on someserver$ echo 100 > ./test
user@host:~/.gvfs/someshare on someserver$ echo 200 >> ./test
user@host:~/.gvfs/someshare on someserver$ echo 300 >> ./test
user@host:~/.gvfs/someshare on someserver$ echo 400 > ./test
3. Expected file contents:
400
4. Real file contents:
user@host:~/.gvfs/someshare on someserver$ cat ./test
400
200
300

Similar behaviour is when using a text editor writing with fopen (e.g. Geany: http://www.geany.org). When using gedit (which seems to write via g_file_set_contents), all is OK.

I'm using Ubuntu 9.10 Karmic with Gnome 2.28.1 and GVFS 1.4.2

Is it a bug or an expected behaviour (e.g. all apps dealing with GVFS should use g_file_set_contents)?
Comment 1 Tomas Bzatek 2010-10-13 15:00:36 UTC
Can you please test the patch posted in bug 627567? Also, appending to a file seems to work with smb only, but not for ftp or sftp.
Comment 2 Akhil Laddha 2011-10-14 05:17:28 UTC
potter, can you please respond to comment#1 ?
Comment 3 potter000 2011-10-15 18:27:14 UTC
(In reply to comment #2)
> potter, can you please respond to comment#1 ?
Will test the patch as soon as I am near my Linux PC (2-3 days). According to bug 627567 the patch has been integrated into GNOME since 2.32, is that correct?
Comment 4 Tomas Bzatek 2011-10-17 09:05:36 UTC
(In reply to comment #3)
> According to bug 627567 the patch has been integrated into GNOME since 2.32,
> is that correct?
Yes, 1.6.6 release for gnome 2.32.x carries the patch (not vanilla 2.32.0).
Comment 5 potter000 2011-10-17 11:21:41 UTC
(In reply to comment #1)
> Can you please test the patch posted in bug 627567? Also, appending to a file
> seems to work with smb only, but not for ftp or sftp.

I do confirm that the bug has vanished at least since GNOME 2.32.1 and GVFS 1.8.0. I performed the same test that was described in my original post.
Comment 6 Tomas Bzatek 2011-10-17 11:40:30 UTC
Great, thank you for confirming this.