BlockDev.PartSpec

Fields

Name

Type

Access

Description

attrs

int

r/w

partition GPT attributes

bootable

bool

r/w

whether the bootable flag is set or not (for MSDOS partitions)

id

str

r/w

id of the partition (for MSDOS partitions)

name

str

r/w

name of the partition (for GPT partitions)

path

str

r/w

path of the partition (block device)

size

int

r/w

size of the partition

start

int

r/w

start of the partition

type

int

r/w

bit combination of partition’s types (BlockDev.PartType)

type_guid

str

r/w

GUID of the partition’s type (GPT)

uuid

str

r/w

UUID of the partition (for GPT partitions)

Methods

copy ()

free ()

Details

class BlockDev.PartSpec
copy()
Return type:

BlockDev.PartSpec

free()