Package pyanaconda :: Package storage :: Module deviceaction :: Class ActionCreateFormat
[hide private]
[frames] | no frames]

Class ActionCreateFormat

source code

  object --+    
           |    
DeviceAction --+
               |
              ActionCreateFormat

An action representing creation of a new filesystem.

Instance Methods [hide private]
 
__init__(self, device, format=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
execute(self, intf=None)
perform the action
source code
 
cancel(self)
cancel the action
source code
 
requires(self, action)
Return True if self requires action.
source code
 
obsoletes(self, action)
Return True if this action obsoletes action.
source code

Inherited from DeviceAction: __str__, format, isCreate, isDestroy, isDevice, isFormat, isGrow, isMigrate, isResize, isShrink

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  type = 100
  obj = 1

Inherited from DeviceAction (private): _id

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, device, format=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

execute(self, intf=None)

source code 

perform the action

Overrides: DeviceAction.execute
(inherited documentation)

cancel(self)

source code 

cancel the action

Overrides: DeviceAction.cancel
(inherited documentation)

requires(self, action)

source code 

Return True if self requires action.

Format create action can require another action if:

  • this action's device depends on the other action's device and the other action is not a device destroy action
  • the other action is a create or resize of this action's device
Overrides: DeviceAction.requires

obsoletes(self, action)

source code 

Return True if this action obsoletes action.

Format create actions obsolete the following actions:

  • format actions w/ lower id on this action's device, other than those that destroy existing formats
Overrides: DeviceAction.obsoletes