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

elextr notifications at xxxxx
Thu May 7 11:55:55 UTC 2020


And as a further example of the problems with the approach, something as "simple" as free space on a plain vanilla ext4 partition is complicated by the fact that its a delayed allocation journalling file system, so free space is only accurate just after a full filesystem sync and no other file system activity has occurred.

So to get accurate space available before a save there would need to be nothing else using the filesystem, otherwise the available space can change between when its synced (which is very expensive) then space checked, and when the file is written, and so the write can still fail.

Small inaccuracies like that don't matter when there is plenty of space, but when space is tight and you really need the accuracy its not available except possibly in specific and expensive conditions.

-- 
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-625209302
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200507/7d900e9d/attachment.htm>


More information about the Github-comments mailing list