224. Storage

224.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    224.2. Global Functions

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

    224.2.2. CheckForEvmsRootFs

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

    Return value

    • boolean

    224.2.3. CheckForLvmRootFs

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

    Return value

    • boolean

    224.2.4. CheckSwapOn

    Check if swap paritition is availbe on a disk

    Function parameters

    • string disk

    Return value

    • boolean - true if swap available.

    224.2.5. Commit

    Return value

    • boolean

    224.2.6. DeletePartitionTable

    Delete the partition table and disk label of device

    Function parameters

    • string disk

    Return value

    • boolean

    224.2.7. GetDeviceName

    Get Device Name

    Function parameters

    • string disk

    • any partition

    Return value

    • string - device name

    224.2.8. GetDiskPartition

    Function parameters

    • string device

    Return value

    • map

    224.2.9. GetLoopDev

    Find next free loop device.

    Function parameters

    • integer start

    Return value

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

    224.2.10. GetOtherLinuxPartitions

    Get list of all Linux Partitions on all real disks

    Return value

    • list - Partition list

    224.2.11. GetPartitionList

    Get list of all Partitions on all real disks

    Return value

    • list - Partition list

    224.2.12. GetUsedRealDisksNew

    Get used real disks

    Function parameters

    • map<string,map> tg

    • boolean ignore_boot

    Return value

    • list<string> - disks List of disks

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

    224.2.14. InitializeDisk

    Set the flag if a disk needs to be initialized

    Function parameters

    • string disk

    • boolean value

    Return value

    • boolean

    224.2.15. IsPartitionable

    Check if a container is partitionale

    Function parameters

    • map entry

    Return value

    • boolean - true if partitionale

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

    224.2.17. Record

    Return value

    • void

    224.2.18. Rollback

    Return value

    • boolean

    224.2.19. SwappingPartitions

    Get List of swap partitions

    Return value

    • list - List of swap partitions

    224.3. Global Variables

    224.4. Module Requirements

    224.4.1. Module Imports

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

    224.4.2. Module Includes

    • storage/routines.ycp