SpaceCalculation.ycp |
|
This module has an unstable interface. |
Imports
Global Functions
Local Functions |
local
GetDirMountPoint (string target, list<map<string, string> > partition)
->
string
Get mountpoint for a directory
- Parameters:
-
target directory partition partitions list
- Return value:
-
mountpoint
global
EvaluateFreeSpace (integer spare_percentage)
->
list<map<string,any> >
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.
- Parameters:
-
spare_percentage percentage of spare disk space, i.e. free space is increased
- Return value:
-
partition list, e.g. [$["free":389318, "name":"/", "used":1487222], $["free":1974697, "name":"/usr", "used":4227733]]
- Example
-
EvaluateFreeSpace ( 5 ); *** This is needed during update !
global
CheckDiskFreeSpace (integer free_percent, integer max_unsufficient_free_size)
->
list<map>
Check, if there is enough free space after installing the current selection
- Parameters:
-
free_percent minimal free space after installation (in percent) max_unsufficient_free_size
- Return value:
-
of partitions which have less than free_percent free size