[PATCH 05/17] Add docstrings for BTRFSVolumeDevice and BTRFSSubVolumeDevice.

David Lehman dlehman at redhat.com
Thu Jun 5 16:47:25 UTC 2014


---
 blivet/devices.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/blivet/devices.py b/blivet/devices.py
index c371262..2e911f8 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -4708,6 +4708,18 @@ class BTRFSVolumeDevice(BTRFSDevice, ContainerDevice):
     _formatUUIDAttr = property(lambda s: "volUUID")
 
     def __init__(self, *args, **kwargs):
+        """
+            :param str name: the volume name
+            :keyword bool exists: does this device exist?
+            :keyword :class:`~.size.Size` size: the device's size
+            :keyword :class:`~.ParentList` parents: a list of parent devices
+            :keyword fmt: this device's formatting
+            :type fmt: :class:`~.formats.DeviceFormat` or a subclass of it
+            :keyword str uuid: UUID of top-level filesystem/volume
+            :keyword str sysfsPath: sysfs device path
+            :keyword str dataLevel: RAID level for data
+            :keyword str metaDataLevel: RAID level for metadata
+        """
         self.dataLevel = kwargs.pop("dataLevel", None)
         self.metaDataLevel = kwargs.pop("metaDataLevel", None)
 
@@ -4895,6 +4907,15 @@ class BTRFSSubVolumeDevice(BTRFSDevice):
     _type = "btrfs subvolume"
 
     def __init__(self, *args, **kwargs):
+        """
+            :param str name: the subvolume name
+            :keyword bool exists: does this device exist?
+            :keyword :class:`~.size.Size` size: the device's size
+            :keyword :class:`~.ParentList` parents: a list of parent devices
+            :keyword fmt: this device's formatting
+            :type fmt: :class:`~.formats.DeviceFormat` or a subclass of it
+            :keyword str sysfsPath: sysfs device path
+        """
         self.vol_id = kwargs.pop("vol_id", None)
 
         super(BTRFSSubVolumeDevice, self).__init__(*args, **kwargs)
-- 
1.9.0



More information about the anaconda-patches mailing list