Package pyanaconda :: Package storage :: Module devices :: Class LoopDevice
[hide private]
[frames] | no frames]

Class LoopDevice

source code

object --+        
         |        
    Device --+    
             |    
 StorageDevice --+
                 |
                LoopDevice

A loop device.

Instance Methods [hide private]
 
__init__(self, name=None, format=None, size=None, sysfsPath=None, exists=None, parents=None)
Create a LoopDevice instance.
source code
 
updateName(self)
Update this device's name.
source code
 
status(self)
This device's status.
source code
 
size(self) source code
 
_setup(self, intf=None, orig=False)
Open, or set up, a device.
source code
 
_postSetup(self)
Perform post-setup operations.
source code
 
_teardown(self, recursive=False)
Close, or tear down, a device.
source code
 
_postTeardown(self, recursive=False)
Perform post-teardown operations.
source code
 
slave(self) source code

Inherited from StorageDevice: __repr__, __str__, checkSize, create, currentSize, destroy, dict, disks, encrypted, formatArgs, fstabSpec, growable, isDisk, maxSize, minSize, model, notifyKernel, packages, partedDevice, partitionable, partitioned, path, preCommitFixup, removable, resizable, resize, serial, services, setup, setupParents, teardown, updateSysfsPath, vendor

Inherited from Device: __deepcopy__, addChild, dependsOn, dracutSetupArgs, isleaf, mediaPresent, name, removeChild, teardownParents, type, typeDescription, writeKS

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

Class Variables [hide private]
  _type = "loop"

Inherited from StorageDevice: format, sysfsBlockDir, targetSize

Inherited from StorageDevice (private): _devDir, _isDisk, _partitionable, _resizable

Inherited from Device (private): _id, _packages, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None, format=None, size=None, sysfsPath=None, exists=None, parents=None)
(Constructor)

source code 
Create a LoopDevice instance.

Arguments:

    name -- the device's name

Keyword Arguments:

    format -- a DeviceFormat instance
    size -- the device's size in MB
    parents -- a list of required devices (Device instances)
    exists -- indicates whether this is an existing device


Loop devices always exist.

Overrides: object.__init__

status(self)

source code 
This device's status.

For now, this should return a boolean:
    True    the device is open and ready for use
    False   the device is not open

Decorators:
  • @property
Overrides: Device.status
(inherited documentation)

size(self)

source code 
Decorators:
  • @property
Overrides: size

_setup(self, intf=None, orig=False)

source code 

Open, or set up, a device.

Overrides: StorageDevice._setup

_postSetup(self)

source code 

Perform post-setup operations.

Overrides: StorageDevice._postSetup
(inherited documentation)

_teardown(self, recursive=False)

source code 

Close, or tear down, a device.

Overrides: StorageDevice._teardown

_postTeardown(self, recursive=False)

source code 

Perform post-teardown operations.

Overrides: StorageDevice._postTeardown
(inherited documentation)

slave(self)

source code 
Decorators:
  • @property