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

Class NoDevice

source code

object --+        
         |        
    Device --+    
             |    
 StorageDevice --+
                 |
                NoDevice

A nodev device for nodev filesystems like tmpfs.

Instance Methods [hide private]
 
__init__(self, format=None)
Create a NoDevice instance.
source code
 
path(self)
Device node representing this device.
source code
 
setup(self, intf=None, orig=False)
Open, or set up, a device.
source code
 
teardown(self, recursive=False)
Close, or tear down, a device.
source code
 
create(self, intf=None)
Create the device.
source code
 
destroy(self)
Destroy the device.
source code

Inherited from StorageDevice: __repr__, __str__, checkSize, currentSize, dict, disks, encrypted, formatArgs, fstabSpec, growable, isDisk, maxSize, minSize, model, notifyKernel, packages, partedDevice, partitionable, partitioned, preCommitFixup, removable, resizable, resize, serial, services, setupParents, status, 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 = "nodev"

Inherited from StorageDevice: format, size, 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, format=None)
(Constructor)

source code 
Create a NoDevice instance.

Arguments:

Keyword Arguments:

    format -- a DeviceFormat instance

Overrides: object.__init__

path(self)

source code 

Device node representing this device.

Decorators:
  • @property
Overrides: StorageDevice.path

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

source code 

Open, or set up, a device.

Overrides: Device.setup

teardown(self, recursive=False)

source code 

Close, or tear down, a device.

Overrides: Device.teardown

create(self, intf=None)

source code 

Create the device.

Overrides: Device.create

destroy(self)

source code 

Destroy the device.

Overrides: Device.destroy