]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: add get_type()
authorSage Weil <sage@redhat.com>
Thu, 7 Jan 2016 18:12:14 +0000 (13:12 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:14 +0000 (14:06 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h
src/os/bluestore/BlueStore.h
src/os/filestore/FileStore.h
src/os/kstore/KStore.h
src/os/memstore/MemStore.h

index b7239723c28df08a5332ac1ae0902838390edfbf..bc5126d0ac8ffcc06936dc4da15f13bd3ca3662a 100644 (file)
@@ -1876,6 +1876,8 @@ public:
     return 0;
   }
 
+  virtual string get_type() = 0;
+
   // mgmt
   virtual bool test_mount_in_use() = 0;
   virtual int mount() = 0;
index 0e5424dd6de6d71c580385a7f2c883bb6a9606bb..56ca712ade7e59e952224a55cb29eb36e1a34991 100644 (file)
@@ -585,6 +585,10 @@ public:
   BlueStore(CephContext *cct, const string& path);
   ~BlueStore();
 
+  string get_type() {
+    return "bluestore";
+  }
+
   bool needs_journal() { return false; };
   bool wants_journal() { return false; };
   bool allows_journal() { return false; };
index 52714f967847b8ea07a2c0d5bbda6c16b0c3ed16..c3d8162236fa0907910aafee88a56f4aa9873565 100644 (file)
@@ -414,6 +414,10 @@ public:
     const char *internal_name = "filestore", bool update_to=false);
   ~FileStore();
 
+  string get_type() {
+    return "filestore";
+  }
+
   int _detect_fs();
   int _sanity_check_fs();
 
index 4f01992385b9ea287b9ffc8a459295d4efdb8882..b5664ffc3a4773164d5dff643966d1a52e86151f 100644 (file)
@@ -370,6 +370,10 @@ public:
   KStore(CephContext *cct, const string& path);
   ~KStore();
 
+  string get_type() {
+    return "kstore";
+  }
+
   bool needs_journal() { return false; };
   bool wants_journal() { return false; };
   bool allows_journal() { return false; };
index 6895011e97fe9fc7e5db6755c06924a30275728f..8bc9babe7f139f309dab0b37a2384331e947b397 100644 (file)
@@ -345,6 +345,10 @@ public:
       used_bytes(0) {}
   ~MemStore() { }
 
+  string get_type() {
+    return "memstore";
+  }
+
   bool test_mount_in_use() {
     return false;
   }