Signed-off-by: Sage Weil <sage@inktank.com>
}
// the store
- ObjectStore *store = ObjectStore::create(g_conf->osd_objectstore,
+ ObjectStore *store = ObjectStore::create(g_ceph_context,
+ g_conf->osd_objectstore,
g_conf->osd_data,
g_conf->osd_journal);
if (!store) {
#include "FileStore.h"
#include "common/safe_io.h"
-ObjectStore *ObjectStore::create(const string& type,
+ObjectStore *ObjectStore::create(CephContext *cct,
+ const string& type,
const string& data,
const string& journal)
{
#include <sys/vfs.h> /* or <sys/statfs.h> */
#endif /* DARWIN */
+class CephContext;
+
using std::vector;
using std::string;
}
class ObjectStore {
-private:
+protected:
string path;
public:
* @param data path (or other descriptor) for data
* @param journal path (or other descriptor) for journal (optional)
*/
- static ObjectStore *create(const string& type,
+ static ObjectStore *create(CephContext *cct,
+ const string& type,
const string& data,
const string& journal);