]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/xattr_bench.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / test / xattr_bench.cc
index 423e6a8c89084430c1f3bd19552d9012d442b483..b117e16f26ac10f25fdd6bb52b8767669dba6bfe 100644 (file)
@@ -18,7 +18,7 @@
 #include <iostream>
 #include <iterator>
 #include <sstream>
-#include "os/filestore/FileStore.h"
+#include "os/bluestore/BlueStore.h"
 #include "include/Context.h"
 #include "common/ceph_argparse.h"
 #include "common/ceph_mutex.h"
@@ -33,7 +33,7 @@
 #include "include/unordered_map.h"
 
 void usage(const string &name) {
-  std::cerr << "Usage: " << name << " [xattr|omap] store_path store_journal"
+  std::cerr << "Usage: " << name << " [xattr|omap] store_path"
            << std::endl;
 }
 
@@ -160,16 +160,14 @@ int main(int argc, char **argv) {
   common_init_finish(g_ceph_context);
 
   std::cerr << "args: " << args << std::endl;
-  if (args.size() < 3) {
+  if (args.size() < 2) {
     usage(argv[0]);
     return 1;
   }
 
   string store_path(args[1]);
-  string store_dev(args[2]);
 
-  boost::scoped_ptr<ObjectStore> store(new FileStore(cct.get(), store_path,
-                                                    store_dev));
+  boost::scoped_ptr<ObjectStore> store(new BlueStore(cct.get(), store_path));
 
   std::cerr << "mkfs starting" << std::endl;
   ceph_assert(!store->mkfs());