[Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-07 Thread roland65
When the partition is full, attempting to save a file in Geany results in a complete file loss. Geany version : 1.36 System : Ubuntu Linux 20.04 LTS To reproduce : 1. Fill some partition until there is no space left on it. For example : fallocate -l 100G bigfile 2. Edit a text file located in

Re: [Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-07 Thread roland65
> See > https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving > > Which saving method are you using? Any method other than > use_atomic_file_saving is likely to result in the behaviour you describe as > indicated in the reference above. No I don't have

Re: [Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-07 Thread roland65
> > Why not simply checking that the remaining space is greater than the > > current file size and only allow to save in that case? > > Because that information is not available cheaply, reliably, and portably for > all filesystem types and platforms Geany is available on, if a save fails >

Re: [Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-07 Thread roland65
> The user just requested that the file be overwritten when they said "save". > Clearly the content of their "precious" file doesn't matter any more, its the > contents of the Geany buffer that the user wants to save that is important. > And as the wiki article says, failing to save does not

Re: [Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-08 Thread roland65
>To be clear, running out of disk part way through writing the file is a >hardware problem. Your hardware doesn't have a big enough disk :) I don't agree with you... I did some tests in a VM with geany and some other editors and the same situation. Here are the results: - geany => nulls out

Re: [Github-comments] [geany/geany] Data loss when partition is full (#2494)

2020-05-08 Thread roland65
OK, thanks for the explanations... However, you should at least modify the error message in geany so that the user is warned (in red) to save its file on another partition before exiting geany. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or