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:
@@ -346,7 +346,7 @@ private:
|
|||||||
{
|
{
|
||||||
BDiskSystem diskSystem;
|
BDiskSystem diskSystem;
|
||||||
while (roster.GetNextDiskSystem(&diskSystem) == B_OK) {
|
while (roster.GetNextDiskSystem(&diskSystem) == B_OK) {
|
||||||
if (partition->CanInitialize(diskSystem.Name()))
|
if (partition->CanInitialize(diskSystem.PrettyName()))
|
||||||
diskSystems.AddItem(new BDiskSystem(diskSystem));
|
diskSystems.AddItem(new BDiskSystem(diskSystem));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -360,7 +360,7 @@ private:
|
|||||||
// print the available disk systems
|
// print the available disk systems
|
||||||
printf("\ndisk systems that can initialize the selected partition:\n");
|
printf("\ndisk systems that can initialize the selected partition:\n");
|
||||||
for (int32 i = 0; BDiskSystem* diskSystem = diskSystems.ItemAt(i); i++)
|
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");
|
printf("\n");
|
||||||
|
|
||||||
@@ -385,7 +385,7 @@ private:
|
|||||||
|
|
||||||
// validate parameters
|
// validate parameters
|
||||||
BString validatedName(name);
|
BString validatedName(name);
|
||||||
if (partition->ValidateInitialize(diskSystem->Name(),
|
if (partition->ValidateInitialize(diskSystem->PrettyName(),
|
||||||
supportsName ? &validatedName : NULL, parameters.String())
|
supportsName ? &validatedName : NULL, parameters.String())
|
||||||
!= B_OK) {
|
!= B_OK) {
|
||||||
printf("Validation of the given values failed. Sorry, can't "
|
printf("Validation of the given values failed. Sorry, can't "
|
||||||
@@ -425,7 +425,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// initialize
|
// initialize
|
||||||
status_t error = partition->Initialize(diskSystem->Name(),
|
status_t error = partition->Initialize(diskSystem->PrettyName(),
|
||||||
supportsName ? name.String() : NULL, parameters.String());
|
supportsName ? name.String() : NULL, parameters.String());
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
printf("Initialization failed: %s\n", strerror(error));
|
printf("Initialization failed: %s\n", strerror(error));
|
||||||
|
|||||||
Reference in New Issue
Block a user