[Haiku-commits] r30970 - haiku/trunk/src/bin/mkfs
axeld at mail.berlios.de
axeld at mail.berlios.de
Fri Jun 5 11:06:13 CEST 2009
Author: axeld
Date: 2009-06-05 11:06:11 +0200 (Fri, 05 Jun 2009)
New Revision: 30970
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=30970&view=rev
Modified:
haiku/trunk/src/bin/mkfs/FsCreator.cpp
Log:
* Fixed wrong partition name in mkfs, closing ticket #3954.
Modified: haiku/trunk/src/bin/mkfs/FsCreator.cpp
===================================================================
--- haiku/trunk/src/bin/mkfs/FsCreator.cpp 2009-06-05 08:43:41 UTC (rev 30969)
+++ haiku/trunk/src/bin/mkfs/FsCreator.cpp 2009-06-05 09:06:11 UTC (rev 30970)
@@ -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 @@
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;
}
More information about the Haiku-commits
mailing list