ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001358ClearOSapp-base - Base Systempublic2013-10-01 11:372016-06-27 11:40
Reporteruser2 
Assigned Tobchambers 
PriorityhighSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version7.1.0 Beta 2 
Target Version7.1.0 Beta 2Fixed in Version7.1.0 Beta 2 
Summary0001358: Avoid writing to the file system if disk is nearly full.
DescriptionBad things happen when the hard disk fills up, logs no longer writable, services fail, the system becomes unresponsive, and configuration files become corrupt. Throw an exception if the disk is nearly full.
TagsNo tags attached.
Attached Files

- Relationships
related to 0001012closed Create system warning when disk space is nearly full 

-  Notes
(0001641)
bchambers (administrator)
2015-06-05 13:35
edited on: 2015-06-11 12:04

I think we should bump the priority of this one...can make a bad situation worse.

Proposal to File.php library:

const MIN_BYTES_AVAIL = 100000000; # Choose a number
...
..
.
/**
     * File constructor.
     *
     * @param string $filename target file
     * @param boolean $superuser superuser access required to read the file
     * @param boolean $temporary create a temporary file
     * @param array $options class options
     */

    public function __construct($filename, $superuser = FALSE, $temporary = FALSE, $options = NULL)
    {
        clearos_profile(__METHOD__, __LINE__);

        $free_volume_space = disk_free_space(dirname($filename));
        if ($free_volume_space !== FALSE && $free_volume_space < self::MIN_BYTES_AVAIL)
            throw new Engine_Exception(lang('base_vol_near_capacity'));
...
..
.

PHP function seems very quick...won't impact Webconfig noticeable.


- Issue History
Date Modified Username Field Change
2013-10-01 11:37 user2 New Issue
2013-10-01 11:37 user2 Issue generated from: 0001012
2013-10-01 11:37 user2 Relationship added related to 0001012
2013-10-02 18:55 user2 Status new => confirmed
2013-10-07 13:51 user2 Target Version 6.5.0 Beta 2 => 6.5.0 Beta 3
2013-10-17 12:27 user2 Priority normal => high
2013-11-21 19:13 user2 Target Version 6.5.0 Beta 3 =>
2015-06-05 13:35 bchambers Note Added: 0001641
2015-06-11 12:04 bchambers Note Edited: 0001641 View Revisions
2015-06-15 12:50 bchambers Assigned To => bchambers
2015-06-15 12:50 bchambers Status confirmed => assigned
2015-06-15 12:51 bchambers Issue cloned: 0003151
2015-06-15 12:59 bchambers Product Version => 7.1.0 Beta 2
2015-06-15 12:59 bchambers Fixed in Version => 7.1.0 Beta 2
2015-06-15 12:59 bchambers Target Version => 7.1.0 Beta 2
2016-06-27 11:40 user2 Status assigned => resolved
2016-06-27 11:40 user2 Resolution open => fixed
2016-06-27 11:40 user2 Status resolved => closed