From 8b51d97ab2e651477472988d58ee0e3e093a6ff8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 20 Sep 2019 21:37:57 +0200 Subject: [PATCH] some documentation --- dirkules/hardware/btrfsTools.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dirkules/hardware/btrfsTools.py b/dirkules/hardware/btrfsTools.py index 00843b5..a732273 100644 --- a/dirkules/hardware/btrfsTools.py +++ b/dirkules/hardware/btrfsTools.py @@ -63,6 +63,19 @@ def get_raid(label): def create_pool(label, drives, raid, mount_options): + """ + Formats given drives and creates a pool + :param label: Label for pool + :type label: str + :param drives: contains all drives, which should be added to the pool + :type drives: list + :param raid: RAID Level of pool + :type raid: str + :param mount_options: contains all mount options, which will be added to fstab + :type mount_options: str + :return: + :rtype: + """ btrfs_partitions = "" for d in drives: drive_name = "/dev/" + d.name