From 68f73bd1e56ae230fc2f897871808d920938b435 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 10 Nov 2007 20:38:39 +0000 Subject: [PATCH] The API expects the disk systems' to be referred to by pretty name. Initializing a partition with BFS works again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22884 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/apps/partitioner/Partitioner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/apps/partitioner/Partitioner.cpp b/src/tests/apps/partitioner/Partitioner.cpp index 3842c2c19f..91147156a0 100644 --- a/src/tests/apps/partitioner/Partitioner.cpp +++ b/src/tests/apps/partitioner/Partitioner.cpp @@ -346,7 +346,7 @@ private: { BDiskSystem diskSystem; while (roster.GetNextDiskSystem(&diskSystem) == B_OK) { - if (partition->CanInitialize(diskSystem.Name())) + if (partition->CanInitialize(diskSystem.PrettyName())) diskSystems.AddItem(new BDiskSystem(diskSystem)); } } @@ -360,7 +360,7 @@ private: // print the available disk systems printf("\ndisk systems that can initialize the selected partition:\n"); for (int32 i = 0; BDiskSystem* diskSystem = diskSystems.ItemAt(i); i++) - printf("%2ld %s\n", i, diskSystem->Name()); + printf("%2ld %s\n", i, diskSystem->PrettyName()); printf("\n"); @@ -385,7 +385,7 @@ private: // validate parameters BString validatedName(name); - if (partition->ValidateInitialize(diskSystem->Name(), + if (partition->ValidateInitialize(diskSystem->PrettyName(), supportsName ? &validatedName : NULL, parameters.String()) != B_OK) { printf("Validation of the given values failed. Sorry, can't " @@ -425,7 +425,7 @@ private: } // initialize - status_t error = partition->Initialize(diskSystem->Name(), + status_t error = partition->Initialize(diskSystem->PrettyName(), supportsName ? name.String() : NULL, parameters.String()); if (error != B_OK) printf("Initialization failed: %s\n", strerror(error));