160. OSRSwap

YaST OS Repair. Automatic error detection & repair tool for Linux.

160.1. Summary of Module Globals

List of Global Functions

  • Partitions - Get all valid swap-partitions.

  • Repair - Create swap area on a swap partition.

  • ValidPartitions - Returns a list of names (e.g. ["/dev/hda1", "/dev/hdb3"]) of all partitions that can be mounted to the system as swap out of the specified list.

List of Global Variables

    160.2. Global Functions

    160.2.1. Partitions

    Get all valid swap-partitions.

    Return value

    • list<string> - The list of valid swap-partitions.

    160.2.2. Repair

    Create swap area on a swap partition.

    Function parameters

    • string target

    Return value

    • symbol

    160.2.3. ValidPartitions

    Returns a list of names (e.g. ["/dev/hda1", "/dev/hdb3"]) of all partitions that can be mounted to the system as swap out of the specified list.

    Function parameters

    • list<string> partition_list

    Return value

    • list<string> - The list of partition names that were successfully added to the system as swap partitions.

    160.3. Global Variables

    160.4. Module Requirements

    160.4.1. Module Imports

    • Mode
    • OSRExecute
    • OSRPopup
    • Partitions
    • Storage

    160.4.2. Module Includes