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

elextr notifications at xxxxx
Fri May 8 09:32:41 UTC 2020


No, gedit does not use GIO _unmodified_, it carries a workaround to the GIO issue (which leaves a truncated file in some cases, its described in the wiki article), and that workaround depends on the internal workings of GIO AFAICT.  

That may be fine for something like gedit where it is part of the Gnome infrastructure and tightly coupled with GIO versions, but its harder for separate apps that may be installed on systems with differing versions of GIO.  You can find all these discussions if you search the issues and mailing list archives, its all been discussed before.

Anyway nobody has ported the GIO patch from gedit to Geany so its portability and supportability is a moot point.  Contributors on all those other editors have clearly have not considered it worth the effort either, the same as Geany contributors.

`statvfs` has two problems:

1. as I said above, for file systems that use delayed allocation (including ext4) the free space number may be inaccurate.

2. its racey, after Geany does a statvfs there is nothing stopping some other process using the free space before Geany can write it.






-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2494#issuecomment-625730124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200508/70bb78e8/attachment.htm>


More information about the Github-comments mailing list