<br><br><div class="gmail_quote">2010/5/16 Enrico Tröger <span dir="ltr"><<a href="mailto:enrico.troeger@uvena.de">enrico.troeger@uvena.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 16 May 2010 13:07:18 +1000, Lex wrote:<br>
<br>
Heya,<br>
<div class="im"><br>
> This came up on thread "[Geany-devel] Safe file saving - permissions<br>
> issue" but isn't actually a problem with the filesystem, its just<br>
> exposed by filesystem problems.<br>
<br>
</div>Thanks for breaking the thread.<br>
<div class="im"><br>
<br>
> When a file goes missing and the user does not choose to save or<br>
> close it, if it is reloaded after the file reappears, Geany still<br>
> asks for a save as when it only needs to save.<br>
><br>
> The save as dialog is a problem for users on slow network filesystems<br>
> as it queries all the files in the directory (if the directories are<br>
<br>
</div>No, slow network filesystems are a problem for the Save As dialog :).<br></blockquote><div><br>I think a bloke called Einstein said something about it all being relative  :-)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Sorry, if I'm trying to open a huge directory over a slow network<br>
connection, I can't blame the software which is trying to do perform<br>
the task I requested. What I mean is, if the connection is slow, the<br>
connection is slow. That's the problem.<br></blockquote><div><br>Yes, agree.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Either don't use network filesystems or fix the connection. Of course,<br>
this isn't as easy as it is said but still true, IMO.<br>
<div class="im"><br></div></blockquote><div><br>Yes, I agree, both with fix it and the not so easy, sshfs usually means remote access which means slooooow.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
<br>
> so large they should have been broken up :).  Of course users on slow<br>
> network connections are also the most likely to have files go missing.<br>
><br>
> Attached patch (against r4917) re-sets the real_path of the file on<br>
> reloads, has been running for me all day with no issues but I only<br>
> have local filesystems @Jon can you test?<br>
<br>
</div>(from the other thread:)<br>
<div class="im">> This seems to be because when a document disappears the real path is<br>
> cleared but when it is reloaded the real path is not set again.  I'm<br>
> not sure about side effects so I am asking Enrico or Nick, in<br>
> document_open_file_full can the setptr( doc->real_path  be moved<br>
> outside the if (! reload ) safely?<br>
<br>
</div>I think we did it within the if (! reload) for performance reasons,<br>
getting the realpath is probably a bit expensive (I didn't measured<br>
it). But if it solves your issues, it's maybe worth running it<br>
unconditionally.<br>
<br></blockquote><br><div><br>I guess realpath has to access the whole path so it may also be slow on the network, but as you said above thats a fact of life with slow networks.<br><br>OTOH it is being called from a file loading routine so its going to access the filesystem anyway so the difference may not be much.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I think we can apply it except Nick sees any dangers (he usually<br>
knows the stuff better than me :D).<br>
<div><div></div><div><br></div></div></blockquote><div>Certainly wait to see if Nick has any problems and lets wait for it to
be tested on a remote link, unless you have done it already.  <br><br>Cheers<br>Lex<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>
Regards,<br>
Enrico<br> 
<br><br></div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
--<br>
Get my GPG key from <a href="http://www.uvena.de/pub.asc" target="_blank">http://www.uvena.de/pub.asc</a><br>
</div></div><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>