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

Class ActionResizeFormat

source code

  object --+    
           |    
DeviceAction --+
               |
              ActionResizeFormat

An action representing the resizing of an existing filesystem.

XXX Do we even want to support resizing of a filesystem without
    also resizing the device it resides on?

Instance Methods [hide private]
 
__init__(self, device, newsize)
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

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

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

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

Inherited from DeviceAction (private): _id

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, device, newsize)
(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.

A format resize action requires another action if:

  • the other action is a device resize on the same device and both are grow operations
  • the other action shrinks a device (or format it contains) that depends on this action's device
  • the other action grows a device (or format) that this action's device depends on
Overrides: DeviceAction.requires