Bug #15207
closedDo Quotacheck on localconf.php update!!!
0%
Description
It will happen that your localconf.php is zapped to ZERO size if there is no disk quota left (you upload extension, make updates, BOOOOM). Your localconf.php has gone to Nirwana. There definitely should be a routine that checks if the localconf.php can be rewritten nicely completely successfully perfectly. Or do some backup, at least.
Exhausted quota may occur rather seldomly but if it does - I sware - you are bombed back into stoneage! Especially if you spent hours configuring Realurl and have no backup.
Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr. This feature could save Your life, too. Occasionally. ;)
(issue imported from #M1878)
Updated by Sebastian Kurfuerst about 19 years ago
Hi,
I see your problem, but this quota check would need to be done on every write. I am not sure how to do this. Any thoughts?
Greets, Sebastian
Updated by Martin Kutschker about 19 years ago
Resolution works like this:
Write the new localconf.php as localconf.php_new (or whatever).
Check if all bytes have been written by proper checking error codes.
Remove old localconf.php and rename localconf.php_new to localconf.php.
Sidenote: once a site of mine was blown because of this error. So yes, this shit happens.