From: Sage Weil Date: Thu, 7 Jan 2016 18:12:14 +0000 (-0500) Subject: os/ObjectStore: add get_type() X-Git-Tag: v10.0.4~154^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0638b118432e28c95950108d4afbe0a67cb0b829;p=ceph.git os/ObjectStore: add get_type() Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index b7239723c28d..bc5126d0ac8f 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -1876,6 +1876,8 @@ public: return 0; } + virtual string get_type() = 0; + // mgmt virtual bool test_mount_in_use() = 0; virtual int mount() = 0; diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 0e5424dd6de6..56ca712ade7e 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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; }; diff --git a/src/os/filestore/FileStore.h b/src/os/filestore/FileStore.h index 52714f967847..c3d8162236fa 100644 --- a/src/os/filestore/FileStore.h +++ b/src/os/filestore/FileStore.h @@ -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(); diff --git a/src/os/kstore/KStore.h b/src/os/kstore/KStore.h index 4f01992385b9..b5664ffc3a47 100644 --- a/src/os/kstore/KStore.h +++ b/src/os/kstore/KStore.h @@ -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; }; diff --git a/src/os/memstore/MemStore.h b/src/os/memstore/MemStore.h index 6895011e97fe..8bc9babe7f13 100644 --- a/src/os/memstore/MemStore.h +++ b/src/os/memstore/MemStore.h @@ -345,6 +345,10 @@ public: used_bytes(0) {} ~MemStore() { } + string get_type() { + return "memstore"; + } + bool test_mount_in_use() { return false; }