Menu

#862 Problems writing to sshfs-mounted filesystem

closed-out-of-date
nobody
None
5
2015-02-18
2012-05-29
Anonymous
No

Saving a modified file on a sshfs mount (-o allow_other) results in "Error saving file.\nError renaming temporary file: Operation not permitted\n\nThe file on disk may now be truncated!". Writing a new file works fine. It might be caused by some restrictions on the remote system. However, gedit doesn't show any problems.

geany 0.21 (built on Dec 24 2011 with GTK 2.24.7, GLib 2.28.8)

Discussion

  • Lex Trotman

    Lex Trotman - 2012-05-29

    If you have the preferences->various->use_atomic_file_saving set try with it unset. When set it tries to write to a temporary and then do a rename which is your symptom.

    Also do not use_gio_unsafe_file_saving on networked systems since a Glib bug means that a network glitch can lose your file.

     
  • Lex Trotman

    Lex Trotman - 2012-08-30
    • status: open --> closed-out-of-date
     
  • Albert25

    Albert25 - 2013-07-11

    Same problem for me, even though "use_atomic_file_saving" is NOT checked. This is with Geany 0.21 on Ubuntu 12.04 LTS.

     
  • Albert25

    Albert25 - 2013-07-11

    Using version 1.23 from the Ubuntu PPA, and UNchecking both "use_atomic_file_saving" and "use_gio_unsafe_file_saving", it now seems to work.

     
  • Lex Trotman

    Lex Trotman - 2013-07-12

    Since it can't tell the type of remote filesystem over sshfs gio saving might also try the rename trick. See http://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving for a detailed description of the options.

     

Log in to post a comment.

MongoDB Logo MongoDB