Skip to content

handle disks without partitions#451

Closed
jaypipes wants to merge 2 commits intomainfrom
pr-293
Closed

handle disks without partitions#451
jaypipes wants to merge 2 commits intomainfrom
pr-293

Conversation

@jaypipes
Copy link
Copy Markdown
Owner

@jaypipes jaypipes commented Mar 9, 2026

If a disk has no partitions, common use cases for looping over partitions on the disk array created by Block.New() don't work as expected.
Now, underlying partition functions detect partitionless disks and treat a full-disk filesystem as a partition.

The Partition UUID is set to the empty string (since there isn't one), so this behavior can be detected.

Authored-by: Tai Groot tai@taigrr.com

Resolves Issue: #256

taigrr added 2 commits March 9, 2026 07:06
Signed-off-by: Tai Groot <tai@taigrr.com>
Signed-off-by: Tai Groot <tai@taigrr.com>
@jaypipes
Copy link
Copy Markdown
Owner Author

jaypipes commented Mar 9, 2026

sorry, I pulled the wrong PR...

@jaypipes jaypipes closed this Mar 9, 2026
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.

2 participants