YaST2 Developers Documentation: Configuration of controller

Configuration of controller

modules/DASDController.ycp
Controller settings, input and output functions
  • Jiri Srain

This module has an unstable interface.

Representation of the configuration of controller. Input and output routines.

Imports

  • Arch
  • FileUtils
  • Mode
  • Progress
  • Report
  • Stage
  • Summary

Global Variables

Global Functions

Local Functions

global Modified () -> boolean

Prototypes

global modified -> boolean

Data was modified?

global proposal_valid -> boolean

global write_only -> boolean

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

Info:

Abort function return boolean return true if abort

global Abort () -> boolean

Abort function

Return value:
blah blah lahjk
global Modified () -> boolean

Data was modified?

Return value:
true if modified
global Available () -> boolean

Is this kind of disk controller available?

Return value:
true if it is
global Read () -> boolean

Read all controller settings

Return value:
true on success
global Write () -> boolean

Write all controller settings

Return value:
true on success
global Import (map settings) -> boolean

Get all controller settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success
global Export () -> map

Dump the controller settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())
global Summary () -> list

Create a textual summary and a list of unconfigured cards

Return value:
summary of the current configuration
global AutoPackages () -> map

Return packages needed to be installed and removed during Autoinstallation to insure module has all needed software installed.

Return value:
with 2 lists.
global IsAvailable () -> boolean

Check if DASD subsystem is available

Return value:
True if more than one disk
global FourDigitHex (integer i) -> string

Translate integer number to its hexadecimal representation with leading 0x and exactliy 4 hexadecimal numbers

Parameters:
i integer integer number
Return value:
hexadecimal number
global ProbeDisks () -> void

Probe for DASD disks

local ReportActivationError (any id, integer ret) -> void

Report error occured during device activation

Parameters:
id integer chanel id of the device
ret integer exit code of the operation
global ActivateDisk (string channel, boolean diag) -> void

Activate selected Disks

Parameters:
channel string Name of the disk to activate
diag boolean Activate DIAG or not
global DeactivateDisk (string channel, boolean diag) -> void

Activate selected Disks

Parameters:
channel string Name of the disk to deactivate
diag boolean Activate DIAG or not
global FormatDisks (list<string> disks_list, integer par, boolean write_vl, boolean interactive) -> void

Activate selected Disks

Parameters:
disks_list list List of disks to be formated
par integer Number of disks that can be formated in parallel
write_vl boolean Write a Volume label
interactive boolean Interactive yes/no
global GetPartitionInfo (string disk) -> string

Get partitioninfo

Parameters:
disk string Disk to read info from
Return value:
GetPartitionInfo string The info