216. Storage

216.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    216.2. Global Functions

    216.2.1. AddSwapMp

    mark swap-partitions with pseudo Mountpoint swap in targetMap

    Function parameters

    • map<string,map> target

    Return value

    • map<string,map> - modified target

    216.2.2. CheckForEvmsRootFs

    CheckForEvmsRootFs --------------------------------------------------------------------- check if the root filesystem is a evms volume

    Return value

    • boolean

    216.2.3. CheckForLvmRootFs

    CheckForLvmRootFs --------------------------------------------------------------------- check if the root filesystem is a lvm logical volume

    Return value

    • boolean

    216.2.4. CheckSwapOn

    Check if swap paritition is availbe on a disk

    Function parameters

    • string disk

    Return value

    • boolean - true if swap available.

    216.2.5. Commit

    Return value

    • boolean

    216.2.6. DeletePartitionTable

    Delete the partition table and disk label of device

    Function parameters

    • string disk

    Return value

    • boolean

    216.2.7. GetDeviceName

    Get Device Name

    Function parameters

    • string disk

    • any partition

    Return value

    • string - device name

    216.2.8. GetDiskPartition

    Function parameters

    • string device

    Return value

    • map

    216.2.9. GetLoopDev

    Find next free loop device.

    Function parameters

    • integer start

    Return value

    • string - loop_dev ( e.g.: /dev/loop1 )

    216.2.10. GetOtherLinuxPartitions

    Get list of all Linux Partitions on all real disks

    Return value

    • list - Partition list

    216.2.11. GetPartitionList

    Get list of all Partitions on all real disks

    Return value

    • list - Partition list

    216.2.12. GetUsedRealDisks

    Get used real disks

    Function parameters

    • map<string,map> tg

    Return value

    • list<string> - disks List of disks

    216.2.13. HaveLinuxPartitions

    Determine if there is any Linux partition on this system.

    Return value

    • boolean - true if there is anything that might be a Linux partition

    216.2.14. InitializeDisk

    Set the flag if a disk needs to be initialized

    Function parameters

    • string disk

    • boolean value

    Return value

    • boolean

    216.2.15. IsRealDisk

    Check if a disk is a real disk and not RAID or LVM

    Function parameters

    • map entry

    Return value

    • boolean - true if real disk

    216.2.16. Record

    Return value

    • void

    216.2.17. Rollback

    Return value

    • boolean

    216.2.18. SwappingPartitions

    Get List of swap partitions

    Return value

    • list - List of swap partitions

    216.3. Global Variables

    216.4. Module Requirements

    216.4.1. Module Imports

    • Arch
    • AsciiFile
    • Directory
    • Encoding
    • FileSystems
    • HTML
    • Hotplug
    • Installation
    • Label
    • LibStorage
    • LibStorage::ContainerInfo
    • LibStorage::DiskInfo
    • LibStorage::DmInfo
    • LibStorage::EvmsCoInfo
    • LibStorage::EvmsInfo
    • LibStorage::LoopInfo
    • LibStorage::LvmLvInfo
    • LibStorage::LvmVgInfo
    • LibStorage::MdInfo
    • LibStorage::PartitionInfo
    • LibStorage::StorageInterface
    • LibStorage::VolumeInfo
    • Misc
    • Mode
    • Partitions
    • Popup
    • Stage
    • StorageClients
    • StorageDevices
    • String

    216.4.2. Module Includes

    • storage/routines.ycp