List of Global Functions
AddFstabEntry - Adds an entry into the fstab
AddMountPointInfo - Adds mountpoint info to the target map and returns the changed map
AddSwapMp - mark swap-partitions with pseudo Mountpoint swap in targetMap
AddWinInfo - Adds ... and returns the changed map
CheckForEvmsRootFs - CheckForEvmsRootFs --------------------------------------------------------------------- check if the root filesystem is a evms volume
CheckForLvmRootFs - CheckForLvmRootFs --------------------------------------------------------------------- check if the root filesystem is a lvm logical volume
CheckSwapOn - Check if swap paritition is availbe on a disk
Commit -
CommitChanges - Apply storage changes
CreatePartition - Creates a new partition
DeletePartitionTable - Delete the partition table and disk label of device
DetectFs - Detects a filesystem on a device
EvmsDevDisk - Returns ...
FindFstabEntry - Finds and returns fstab entry
GetDeviceName - Returns Device Name
GetDisk - Returns disk identified by 'device' taken from the 'tg' (target) map
GetDiskPartition - Returns map describing the disk partition
GetFreeSpace - Returns map of free space per partition
GetLoopDev - Find next free loop device.
GetMountPoints - GetMountPoints() collect mountpoint:device as map to get a sorted list usually starting with a "/". Exception is "swap" For directory mount points (key starting with /) the value is a list [partitionName, fsid, targetdevice, raid_type] For swap mount points, the value is a list of lists: [[partitionName, fsid, targetdevice, raid_type], ...]
GetOndiskTarget - Returns map describing the disk target
GetOtherLinuxPartitions - Get list of all Linux Partitions on all real disks
GetPartitionList - Get list of all Partitions on all real disks
GetPrimPartitions - Returns list of primary partitions found
GetTargetMap - Returns a system target map.
GetUsedRealDisksNew - Get used real disks
InitializeDisk - Set the flag if a disk needs to be initialized
IsPartitionable - Checks if a container is partitionable
IsRealDisk - Check if a disk is a real disk and not RAID or LVM
IsResizable - Returns whether a partition is resizable
Mount - Mounts a device
MountOpt - Mounts a device
ReReadTargetMap - Rereads the system target map and returns it
ReadFstab - Reads and returns fstab from directory
Record -
RemoveDmMapsTo - Removes ... maps to ...
ResizeVolume - Sets a new size for partition
Rollback -
SetPartition - Sets partition 'part' into the 'tg' map and returns changed 'tg' map
SetPartitionData - Set <key> in partition <device> to the given <value> and return changed map <tg>
SetPartitionFormat - Sets whether a partition should be formatted
SetPartitionId - Sets partition ID
SetPartitionMount - Sets a mountpoint for partition
SwappingPartitions - Get List of swap partitions
Umount - Umounts a device
UnchangePartitionId - Restores the original partition ID
Update - Updates fstab on disk
UpdateTargetMap - Updates target map
WriteFstab - Writes fstab to the disk
getDiskInfo - Returns map with disk info
List of Global Variables
Adds an entry into the fstab
Function parameters
map e
Return value
integer - (0 and higher == OK, otherwise error)
Adds mountpoint info to the target map and returns the changed map
Function parameters
map<string,map> target
Return value
map<string,map> - target
mark swap-partitions with pseudo Mountpoint swap in targetMap
Function parameters
map<string,map> target
Return value
map<string,map> - modified target
Adds ... and returns the changed map
Function parameters
map<string,map> targets
Return value
map<string,map> - targets
CheckForEvmsRootFs --------------------------------------------------------------------- check if the root filesystem is a evms volume
Return value
boolean
CheckForLvmRootFs --------------------------------------------------------------------- check if the root filesystem is a lvm logical volume
Return value
boolean
Check if swap paritition is availbe on a disk
Function parameters
string disk
Return value
boolean - true if swap available.
Creates a new partition
Function parameters
string disk
string device
symbol ptype
integer id
integer start
integer len
symbol mby
Return value
boolean - if successful
Delete the partition table and disk label of device
Function parameters
string disk
integer size_k
Return value
boolean
Detects a filesystem on a device
Function parameters
string device
Return value
symbol - filesystem
Finds and returns fstab entry
Function parameters
map fstab
string mount
string device
string uuid
string label
Return value
map - fstab entry
$[ "spec" : "...", "file" : "...", "vfstype" : "...", "mntops" : "...", "freq" : ..., "passno" : ..., ]
Returns Device Name
Function parameters
string disk
any partition
Return value
string - device name
Returns disk identified by 'device' taken from the 'tg' (target) map
Function parameters
map<string,map> tg
string device
Return value
map<string,any>
Returns map describing the disk partition
Function parameters
string device
Return value
map - DiskPartition
Returns map of free space per partition
Function parameters
string device
integer testsize
symbol used_fs
boolean verbose
Return value
map
Find next free loop device.
Function parameters
integer start
Return value
string - loop_dev ( e.g.: /dev/loop1 )
GetMountPoints() collect mountpoint:device as map to get a sorted list usually starting with a "/". Exception is "swap" For directory mount points (key starting with /) the value is a list [partitionName, fsid, targetdevice, raid_type] For swap mount points, the value is a list of lists: [[partitionName, fsid, targetdevice, raid_type], ...]
Return value
map
Get list of all Linux Partitions on all real disks
Return value
list - Partition list
Get list of all Partitions on all real disks
Return value
list - Partition list
Returns list of primary partitions found
Function parameters
map<string,map> targets
boolean foreign_os
Return value
list - of primary partitions
Returns a system target map.
Return value
map<string,map> - target map
$[ ... ? ]
Get used real disks
Function parameters
map<string,map> tg
boolean ignore_boot
Return value
list<string> - disks List of disks
Set the flag if a disk needs to be initialized
Function parameters
string disk
boolean value
Return value
boolean
Checks if a container is partitionable
Function parameters
map entry
Return value
boolean - true if partitionable
entry ~ $[ "type" : ... ? ]
Check if a disk is a real disk and not RAID or LVM
Function parameters
map entry
Return value
boolean - true if real disk
entry ~ $[ "type":`CT_DISK, "driver" : "?", "readonly" : false / true, ]
Returns whether a partition is resizable
Function parameters
map part
Return value
map - resizable ?
Mounts a device
Function parameters
string dev
string mp
Return value
boolean - if successful
Mounts a device
Function parameters
string dev
string mp
string fstopt
Return value
boolean - if successful
Rereads the system target map and returns it
Return value
map<string,map> - target map
Reads and returns fstab from directory
Function parameters
string dir
Return value
list
Sets a new size for partition
Function parameters
string device
string disk
integer new_size
Return value
boolean - if successfull
Sets partition 'part' into the 'tg' map and returns changed 'tg' map
Function parameters
map<string,map> tg
map part
Return value
map<string,map> - changed tg
Set <key> in partition <device> to the given <value> and return changed map <tg>
Function parameters
map<string,map> tg
string device
string key
any value
Return value
map<string,map> - changed target map
Sets whether a partition should be formatted
Function parameters
string device
boolean format
symbol fs
Return value
boolean - if successful
Sets partition ID
Function parameters
string device
integer id
Return value
boolean - if successful
Sets a mountpoint for partition
Function parameters
string device
string mp
Return value
boolean - if successful
Restores the original partition ID
Function parameters
string device
Return value
boolean - if succesful
Updates fstab on disk
Function parameters
map oldv
map newv
Return value
void
version $[ // This means version 9.1 "major" : 9, "minor" : 1, ]