Skip to content

Commit

Permalink
Add DragonFlyBSD partition and OS type
Browse files Browse the repository at this point in the history
  • Loading branch information
phcoder authored and soerenmeier committed Jul 28, 2023
1 parent 0a4da8d commit 8e505e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/partition_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ pub enum OperatingSystem {
Windows,
/// QNX
QNX,
/// DragonFlyBSD
DragonFlyBsd,
}

impl FromStr for OperatingSystem {
Expand All @@ -73,6 +75,7 @@ impl FromStr for OperatingSystem {
"atari" => Ok(OperatingSystem::Atari),
"Ceph" => Ok(OperatingSystem::Ceph),
"Chrome" => Ok(OperatingSystem::Chrome),
"DragonFlyBsd" => Ok(OperatingSystem::DragonFlyBsd),
"FreeBsd" => Ok(OperatingSystem::FreeBsd),
"FreeDesktop" => Ok(OperatingSystem::FreeDesktop),
"Haiku" => Ok(OperatingSystem::Haiku),
Expand Down Expand Up @@ -174,6 +177,8 @@ partition_types! {
(FREEBSD_VINIUM, "516E7CB8-6ECF-11D6-8FF8-00022D09712B", OperatingSystem::FreeBsd),
/// FreeBSD ZFS Partition
(FREEBSD_ZFS, "516E7CBA-6ECF-11D6-8FF8-00022D09712B", OperatingSystem::FreeBsd),
/// DragonFlyBsd container partition
(DRAGONFLY_DATA, "3D48CE54-1D16-11DC-8696-01301BB8A9F5", OperatingSystem::DragonFlyBsd),
/// Apple Hierarchical File System Plus (HFS+) Partition
(MACOS_HFSPLUS, "48465300-0000-11AA-AA11-00306543ECAC", OperatingSystem::MacOs),
/// Apple UFS
Expand Down

0 comments on commit 8e505e3

Please sign in to comment.