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 <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Jérôme Duval 2022-09-11 17:42:47 +02:00 committed by waddlesplash
parent d469ab6d6c
commit 6b7504173c

View File

@ -325,7 +325,7 @@ KPartitioningSystem::SetType(KPartition* child, const char* type,
return result; return result;
// let the module do its job // 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! // TODO: Change hook interface!
// cleanup and return // cleanup and return