summaryrefslogtreecommitdiff
path: root/Kernel/Storage/StorageManagement.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-28 20:21:40 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-29 13:35:54 +0200
commit308e54bc19615fb0fcb9ec71d6f02cca8c4b75d9 (patch)
tree7d27d27be3c0ca97775633e68b53c71ba659a790 /Kernel/Storage/StorageManagement.cpp
parent2d67d141e6c2ed76e8510e1838c600004803a9cf (diff)
downloadserenity-308e54bc19615fb0fcb9ec71d6f02cca8c4b75d9.zip
AK+Kernel: Implement UUID mixed endianness support
This is being used by GUID partitions so the first three dash-delimited fields of the GUID are stored in little endian order but the last two fields are stored in big endian order, hence it's a representation which is mixed.
Diffstat (limited to 'Kernel/Storage/StorageManagement.cpp')
-rw-r--r--Kernel/Storage/StorageManagement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/StorageManagement.cpp b/Kernel/Storage/StorageManagement.cpp
index 54fe0266bb..cfcdc5b274 100644
--- a/Kernel/Storage/StorageManagement.cpp
+++ b/Kernel/Storage/StorageManagement.cpp
@@ -219,7 +219,7 @@ UNMAP_AFTER_INIT void StorageManagement::determine_boot_device_with_partition_uu
VERIFY(!m_storage_devices.is_empty());
VERIFY(m_boot_argument.starts_with(partition_uuid_prefix));
- auto partition_uuid = UUID(m_boot_argument.substring_view(partition_uuid_prefix.length()));
+ auto partition_uuid = UUID(m_boot_argument.substring_view(partition_uuid_prefix.length()), UUID::Endianness::Mixed);
if (partition_uuid.to_string().length() != 36) {
// FIXME: It would be helpful to output the specified and detected UUIDs in this case,