Skip to content

Use pyparted Partition.name - #4760

Open
codefiles wants to merge 1 commit into
archlinux:masterfrom
codefiles:pyparted-partition-name
Open

Use pyparted Partition.name#4760
codefiles wants to merge 1 commit into
archlinux:masterfrom
codefiles:pyparted-partition-name

Conversation

@codefiles

Copy link
Copy Markdown
Contributor

See:

https://codeberg.org/dcantrell/pyparted/src/commit/650e4aeab89c080d5b64e503ad3d8bf326b8f4fc/src/parted/partition.py#L197

For GPT, Partition.name is the partition label. If a partition label is not set for a partition then Partition.name will be an empty string.

For MBR, Partition.name will be None for all partitions:

https://codeberg.org/dcantrell/pyparted/src/commit/650e4aeab89c080d5b64e503ad3d8bf326b8f4fc/src/parted/partition.py#L142-L147

@codefiles
codefiles requested a review from Torxed as a code owner September 6, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant