Home | Trees | Indices | Help |
---|
|
object --+ | Device
A generic device. Device instances know which devices they depend upon (parents attribute). They do not know which devices depend upon them, but they do know whether or not they have any dependent devices (isleaf attribute). A Device's setup method should set up all parent devices as well as the device itself. It should not run the resident format's setup method. Which Device types rely on their parents' formats being active? DMCryptDevice A Device's teardown method should accept the keyword argument recursive, which takes a boolean value and indicates whether or not to recursively close parent devices. A Device's create method should create all parent devices as well as the device itself. It should also run the Device's setup method after creating the device. The create method should not create a device's resident format. Which device type rely on their parents' formats to be created before they can be created/assembled? VolumeGroup DMCryptDevice A Device's destroy method should destroy any resident format before destroying the device itself.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
_id = 0
|
|||
_type = "device"
|
|||
_packages = []
|
|||
_services = []
|
|
|||
Inherited from |
|
Create a Device instance. Arguments: name -- the device name (generally a device node's basename) Keyword Arguments: parents -- a list of required Device instances
|
Create a deep copy of a Device instance. We can't do copy.deepcopy on parted objects, which is okay. For these parted objects, we just do a shallow copy. |
repr(x)
|
str(x)
|
|
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
|
This device's name.
|
True if this device has no children.
|
String describing the device type.
|
Device type.
|
List of packages required to manage devices of this type. This list includes the packages required by its parent devices.
|
List of services required to manage devices of this type. This list includes the services required by its parent devices."
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Mar 2 14:52:24 2012 | http://epydoc.sourceforge.net |