<p></p>
<p>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.</p>
<p>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.</p>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2494#issuecomment-625209302">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2WDWZSUBEFQHXFMODRQKOUXANCNFSM4M3C37ZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3CZEJSBPJLQM5MIELRQKOUXA5CNFSM4M3C37Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVB67VQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2494#issuecomment-625209302",
"url": "https://github.com/geany/geany/issues/2494#issuecomment-625209302",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>