From 6b7504173c0478ed6d2a8994dfdf9dbf015857c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 11 Sep 2022 17:42:47 +0200 Subject: [PATCH] kernel: KPartitioningSystem::SetType() should use the child ID KPartitioningSystem::SetName() and KPartitioningSystem::SetType() are very similar. SetName() already worked for GPT, and with this change SetType() now works for GPT too. Change-Id: If1456a8f5e94ae2e2a05b75e3691f912bd1324ee Reviewed-on: https://review.haiku-os.org/c/haiku/+/5656 Reviewed-by: waddlesplash Tested-by: Commit checker robot --- src/system/kernel/disk_device_manager/KPartitioningSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/disk_device_manager/KPartitioningSystem.cpp b/src/system/kernel/disk_device_manager/KPartitioningSystem.cpp index 4d350d5735..eac434c545 100644 --- a/src/system/kernel/disk_device_manager/KPartitioningSystem.cpp +++ b/src/system/kernel/disk_device_manager/KPartitioningSystem.cpp @@ -325,7 +325,7 @@ KPartitioningSystem::SetType(KPartition* child, const char* type, return result; // let the module do its job - result = fModule->set_type(fd, child->Parent()->ID(), type, job); + result = fModule->set_type(fd, child->ID(), type, job); // TODO: Change hook interface! // cleanup and return