Signed-off-by: Sage Weil <sage@redhat.com>
return 0;
}
+ virtual string get_type() = 0;
+
// mgmt
virtual bool test_mount_in_use() = 0;
virtual int mount() = 0;
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; };
const char *internal_name = "filestore", bool update_to=false);
~FileStore();
+ string get_type() {
+ return "filestore";
+ }
+
int _detect_fs();
int _sanity_check_fs();
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; };
used_bytes(0) {}
~MemStore() { }
+ string get_type() {
+ return "memstore";
+ }
+
bool test_mount_in_use() {
return false;
}