235. Storage

235.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    235.2. Global Functions

    235.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

    235.2.2. CheckForEvmsRootFs

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

    Return value

    • boolean

    235.2.3. CheckForLvmRootFs

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

    Return value

    • boolean

    235.2.4. CheckSwapOn

    Check if swap paritition is availbe on a disk

    Function parameters

    • string disk

    Return value

    • boolean - true if swap available.

    235.2.5. Commit

    Return value

    • boolean

    235.2.6. DeletePartitionTable

    Delete the partition table and disk label of device

    Function parameters

    • string disk

    Return value

    • boolean

    235.2.7. GetDeviceName

    Get Device Name

    Function parameters

    • string disk

    • any partition

    Return value

    • string - device name

    235.2.8. GetLoopDev

    Find next free loop device.

    Function parameters

    • integer start

    Return value

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

    235.2.9. GetOtherLinuxPartitions

    Get list of all Linux Partitions on all real disks

    Return value

    • list - Partition list

    235.2.10. GetPartitionList

    Get list of all Partitions on all real disks

    Return value

    • list - Partition list

    235.2.11. GetUsedRealDisksNew

    Get used real disks

    Function parameters

    • map<string,map> tg

    • boolean ignore_boot

    Return value

    • list<string> - disks List of disks

    235.2.12. 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

    235.2.13. InitializeDisk

    Set the flag if a disk needs to be initialized

    Function parameters

    • string disk

    • boolean value

    Return value

    • boolean

    235.2.14. 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

    235.2.15. Record

    Return value

    • void

    235.2.16. Rollback

    Return value

    • boolean

    235.2.17. SwappingPartitions

    Get List of swap partitions

    Return value

    • list - List of swap partitions

    235.3. Global Variables

    235.4. Module Requirements

    235.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
    • ProductFeatures
    • Stage
    • StorageClients
    • StorageDevices
    • String

    235.4.2. Module Includes

    • storage/routines.ycp