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

Class BTRFSDevice

source code

object --+        
         |        
    Device --+    
             |    
 StorageDevice --+
                 |
                BTRFSDevice

Base class for BTRFS volume and sub-volume devices.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Passing None or no name means auto-generate one like btrfs.%d
source code
 
updateSysfsPath(self)
Update this device's sysfs path.
source code
 
_statusWindow(self, intf=None, title="", msg="") source code
 
_postCreate(self)
Perform post-create operations.
source code
 
_preDestroy(self)
Preparation and precondition checking for device destruction.
source code
 
_getSize(self)
Get the device's size in MB, accounting for pending changes.
source code
 
_setSize(self, size)
Set the device's size to a new value.
source code
 
status(self)
This device's status.
source code
 
_temp_dir_prefix(self) source code
 
_do_temp_mount(self) source code
 
_undo_temp_mount(self) source code
 
path(self)
Device node representing this device.
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, preCommitFixup, removable, resizable, resize, serial, services, setup, setupParents, teardown, 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 = "btrfs"
  _packages = ["btrfs-progs"]

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, *args, **kwargs)
(Constructor)

source code 

Passing None or no name means auto-generate one like btrfs.%d

Overrides: object.__init__

updateSysfsPath(self)

source code 

Update this device's sysfs path.

Overrides: StorageDevice.updateSysfsPath

_statusWindow(self, intf=None, title="", msg="")

source code 
Overrides: StorageDevice._statusWindow

_postCreate(self)

source code 

Perform post-create operations.

Overrides: StorageDevice._postCreate
(inherited documentation)

_preDestroy(self)

source code 

Preparation and precondition checking for device destruction.

Overrides: StorageDevice._preDestroy

_getSize(self)

source code 

Get the device's size in MB, accounting for pending changes.

Overrides: StorageDevice._getSize
(inherited documentation)

_setSize(self, size)

source code 

Set the device's size to a new value.

Overrides: StorageDevice._setSize
(inherited documentation)

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)

_temp_dir_prefix(self)

source code 
Decorators:
  • @property

path(self)

source code 

Device node representing this device.

Decorators:
  • @property
Overrides: StorageDevice.path
(inherited documentation)