From 0bad37e3cad6f393205f30034adbffae72bc2f65 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 17 Oct 2011 14:13:40 -0700 Subject: [PATCH] streamtest: do mkfs Signed-off-by: Sage Weil --- src/streamtest.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/streamtest.cc b/src/streamtest.cc index bced0439b8da8..c7b4c54b047f4 100644 --- a/src/streamtest.cc +++ b/src/streamtest.cc @@ -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; -- 2.39.5