213. SpaceCalculation

213.1. Summary of Module Globals

List of Global Functions

  • 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

    213.2. Global Functions

    213.2.1. 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 52. 

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

    213.3. Global Variables

    213.4. Module Requirements

    213.4.1. Module Imports

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

    213.4.2. Module Includes