We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936f634 commit c03d3aeCopy full SHA for c03d3ae
1 file changed
lib/private/Config.php
@@ -290,6 +290,12 @@ private function writeData() {
290
throw new \Exception(sprintf('Could not acquire an exclusive lock on the config file %s', $this->configFilePath));
291
}
292
293
+ // Never write file back if disk space should be low (less than 100 KiB)
294
+ $df = disk_free_space($this->configDir);
295
+ if ($df !== false && (int)$df < 102400) {
296
+ throw new \Exception($this->configDir . " does not have enough space for writing the config file! Not writing it back!");
297
+ }
298
+
299
// Write the config and release the lock
300
ftruncate($filePointer, 0);
301
fwrite($filePointer, $content);
0 commit comments