* Fixed wrong partition name in mkfs, closing ticket #3954.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30970 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008 Haiku Inc. All rights reserved.
|
* Copyright 2008-2009 Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -172,15 +172,18 @@ FsCreator::Run()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BString contentName = partition->ContentName();
|
||||||
|
// CommitModifications() will invalidate our partition object
|
||||||
|
|
||||||
status = device.CommitModifications();
|
status = device.CommitModifications();
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
if (fVerbose) {
|
if (fVerbose) {
|
||||||
std::cout << "Volume " << partition->ContentName()
|
std::cout << "Volume \"" << contentName.String()
|
||||||
<< " has been initialized successfully!\n";
|
<< "\" has been initialized successfully!" << std::endl;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::cout << kProgramName << ": Initialization of "
|
std::cout << kProgramName << ": Initialization of \""
|
||||||
<< partition->ContentName() << " failed: " << strerror(status)
|
<< contentName.String() << "\" failed: " << strerror(status)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user