diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 9eff1ff0db1..d4fc72255c2 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -1562,6 +1562,11 @@ public: virtual bool wants_journal() = 0; //< prefers a journal virtual bool allows_journal() = 0; //< allows a journal + /// enumerate hardware devices (by 'devname', e.g., 'sda' as in /sys/block/sda) + virtual int get_devices(std::set *devls) { + return -EOPNOTSUPP; + } + /** * is_rotational * diff --git a/src/os/memstore/MemStore.h b/src/os/memstore/MemStore.h index b6ed62c2689..72c7b5cec69 100644 --- a/src/os/memstore/MemStore.h +++ b/src/os/memstore/MemStore.h @@ -280,6 +280,11 @@ public: return false; } + int get_devices(set *ls) override { + // no devices for us! + return 0; + } + int statfs(struct store_statfs_t *buf) override; bool exists(const coll_t& cid, const ghobject_t& oid) override;