GNOME Bugzilla – Bug 346575
data loss when disk is full
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: data loss when disk is full Steps to reproduce: 1. fill your disk 2. open a file 3. save it Actual results: the file is empty Expected results: the file shouldn't be saved Does this happen every time? yes Other information:
Can you please tell us which editor you are using (scintilla or gtksourceview)? Thanks
(In reply to comment #1) > Can you please tell us which editor you are using (scintilla or gtksourceview)? scintilla roby
This is a tricky situation. You only know disk is full when there is a write error during the file save and by that time, the original file was already deleted. How does it work with other editors (e.g. gedit, emacs etc.)?
Other editors handle do this: - Save file to filename~ - Check if this worked: If file was saved: move filename~ to filename Else Error
Fixed in CVS HEAD 2006-10-29
Closing all fixed bugs. Sorry for the mass update :( ...