* 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:
Axel Dörfler
2009-06-05 09:06:11 +00:00
parent 483f3c84d9
commit 7e7aeaeba4
+8 -5
View File
@@ -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.
*
* Authors:
@@ -172,15 +172,18 @@ FsCreator::Run()
return true;
}
BString contentName = partition->ContentName();
// CommitModifications() will invalidate our partition object
status = device.CommitModifications();
if (status == B_OK) {
if (fVerbose) {
std::cout << "Volume " << partition->ContentName()
<< " has been initialized successfully!\n";
std::cout << "Volume \"" << contentName.String()
<< "\" has been initialized successfully!" << std::endl;
}
} else {
std::cout << kProgramName << ": Initialization of "
<< partition->ContentName() << " failed: " << strerror(status)
std::cout << kProgramName << ": Initialization of \""
<< contentName.String() << "\" failed: " << strerror(status)
<< std::endl;
return false;
}