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
This commit is contained in:
Ingo Weinhold 2007-11-10 20:38:39 +00:00
parent 5ac3152dfe
commit 68f73bd1e5

View File

@ -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));