mirror of
https://github.com/vale981/dirkules
synced 2025-03-04 17:01:40 -05:00
some documentation
This commit is contained in:
parent
db5dceac99
commit
8b51d97ab2
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue