« Return to Thread: Edit : cannot save on sshfs mounted file system

Re: Edit : cannot save on sshfs mounted file system

by Thomas Leonard-3 :: Rate this Message:

Reply to Author | View in Thread

2008/5/7 Lennon Cook <lennon@...>:

> Samuel Dionne-Riel <samuel@...> wrote:
>> What happens is that it creates a
>> temporary files, then has some troubles renaming it... thus it gives
>> me this traceback:
> This same behavior also causes other problems - for example, it has the
> side-effect of resetting permissions and extended attributes, every
> time the file is saved.
>
> Is there a reason for this behavior? Why can't it just try to overwrite
> the file in-place, like most other editors? The only obvious reason
> would be for atomicity (so that it doesn't write half the file and then
> fail); for which a better solution - again, adopted by some existing
> programs - would be to save a backup copy of the *old* version until
> it's done all it can to get the new version on disk.

That still leaves you with an inconsistent file during the save (which can
be a problem for config files) and if the save fails.

Any idea why the rename is failing?

Also, it shouldn't be losing the permissions (it preserves them for me, on
a normal filesystem).


--
Dr Thomas Leonard http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
rox-users mailing list
rox-users@...
https://lists.sourceforge.net/lists/listinfo/rox-users

 « Return to Thread: Edit : cannot save on sshfs mounted file system