221. SpaceCalculation

221.1. Summary of Module Globals

List of Global Functions

  • CheckDiskFreeSpace - Check, if there is enough free space after installing the current selection

  • EvaluateFreeSpace - Evaluate the free space on the file system. Runs the command "df" and creates a map containig information about used and free space on every partition. Free space is calculated respecting the spare_percentage given in second argument.

List of Global Variables

    221.2. Global Functions

    221.2.1. CheckDiskFreeSpace

    Check, if there is enough free space after installing the current selection

    Function parameters

    • integer free_percent

    • integer max_unsufficient_free_size

    Return value

    • list<map> - of partitions which have less than free_percent free size

    221.2.2. EvaluateFreeSpace

    Evaluate the free space on the file system. Runs the command "df" and creates a map containig information about used and free space on every partition. Free space is calculated respecting the spare_percentage given in second argument.

    Function parameters

    • integer spare_percentage

    Return value

    • list<map<string,any> > - partition list, e.g. [$["free":389318, "name":"/", "used":1487222], $["free":1974697, "name":"usr", "used":4227733]]

    Example 62. 

     EvaluateFreeSpace ( 5 );
    
     ***  This is needed during update !


    221.3. Global Variables

    221.4. Module Requirements

    221.4.1. Module Imports

    • DirInstall
    • Installation
    • Mode
    • ProductFeatures
    • Report
    • Stage
    • Storage
    • String

    221.4.2. Module Includes