Comment 118 for bug 34813

Revision history for this message
elatllat (elatllat) wrote : Re: [Bug 34813] Re: gedit fails to save files over smbfs/cifs

Thanks for that I was about to reboot to do just that;
because of this problem I use OS X for my laptop ATM

On Tue, Nov 10, 2009 at 10:25 PM, acabre <email address hidden> wrote:

> I've attached two strace logs in case anybody is interested.
>
> strace_first.log contains a strace of launching GEdit, opening a file
> over sshfs that had not been opened previously, making a change,
> successfully saving it, making another change, and being unable to save.
>
> strace_second.log contains a strace of launching GEdit, opening this
> file that had been opened over sshfs before, and getting an error on
> trying to save
>
> I'm on 9.04. In both tests, the "Create a backup copy of files before
> saving" as in the Editor preferences was checked. Unchecking this box
> solves this problem for me.
>
> The file I'm opening is /home/straceuser/stracedir/stracemnt/test.txt ,
> where stracemnt is a sshfs fuse mount.
>
> I'm sure there are several people here, myself included, who would be
> willing to help troubleshoot this problem, if a dev was interested in
> un-triaging it.
>
> ** Attachment added: "strace.tar.gz"
> http://launchpadlibrarian.net/35512943/strace.tar.gz
>
> --
> gedit fails to save files over smbfs/cifs
> https://bugs.launchpad.net/bugs/34813
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Light-Weight Text Editor for Gnome: Confirmed
> Status in SambaServer: Invalid
> Status in SSHFS Mounter: Confirmed
> Status in “gedit” package in Ubuntu: Triaged
>
> Bug description:
> Saving files over a cifs/smbfs server doesnt work. You can open file, edit
> then save perfectly. But repeated saves after give you this error:
>
> "The file /home/dhonn/website/arrays.php has been modified since reading
> it. If you save it, all the external changes could be lost. Save it
> anyway?"
>
> The think is lying to me because I havent made any external changes.
>
> When I click "Save Anyway", i get this error:
>
> "Could not save the file /home/dhonn/website/arrays.php."
>
> But on the third try it works just fine.
>
> Here are the error messages, btw there are also GUI glitches too:
> http://dhonn.com/images/gedit-0.jpg
> http://dhonn.com/images/gedit-1.jpg
>
>