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

Class NFSDevice

source code

      object --+        
               |        
          Device --+    
                   |    
       StorageDevice --+
                       |
          object --+   |
                   |   |
NetworkStorageDevice --+
                       |
                      NFSDevice

An NFS device

Instance Methods [hide private]
 
__init__(self, device, format=None, parents=None)
Create a StorageDevice 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=None)
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 = "nfs"
  _packages = ["dracut-network"]

Inherited from StorageDevice: format, size, sysfsBlockDir, targetSize

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

Inherited from Device (private): _id, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Create a StorageDevice instance.

Arguments:

    name -- the device name (generally a device node's basename)

Keyword Arguments:

    size -- the device's size (units/format TBD)
    major -- the device major
    minor -- the device minor
    sysfsPath -- sysfs device path
    format -- a DeviceFormat instance
    uuid -- universally unique identifier
    parents -- a list of required Device instances
    serial -- the ID_SERIAL_SHORT for this device
    vendor -- the manufacturer of this Device
    model -- manufacturer's device model string
    bus -- the interconnect this device uses

Overrides: object.__init__
(inherited documentation)

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=None)

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