]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
streamtest: do mkfs
authorSage Weil <sage@newdream.net>
Mon, 17 Oct 2011 21:13:40 +0000 (14:13 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 Oct 2011 21:13:40 +0000 (14:13 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/streamtest.cc

index bced0439b8da8fa0ba457415ee6b27acb1c7a48e..c7b4c54b047f43a66bbd2eb5546863f65462479f 100644 (file)
@@ -124,7 +124,12 @@ int main(int argc, const char **argv)
        << ", " << seconds << " seconds, " << bytes << " bytes per write" << std::endl;
 
   ObjectStore *fs = new FileStore(filename, journal);
-
+  
+  if (fs->mkfs() < 0) {
+    cout << "mkfs failed" << std::endl;
+    return -1;
+  }
+  
   if (fs->mount() < 0) {
     cout << "mount failed" << std::endl;
     return -1;