nstring magic;
ceph_fsid_t fsid;
int w;
- int r = OSD::peek_super(g_conf.osd_data, magic, fsid, w);
+ int r = OSD::peek_super(g_conf.osd_data, g_conf.osd_journal, magic, fsid, w);
if (r < 0) {
cerr << TEXT_RED << " ** " << TEXT_HAZARD << "ERROR: " << TEXT_RED
<< "unable to open OSD superblock on " << g_conf.osd_data << ": " << strerror_r(-r, buf, sizeof(buf)) << TEXT_NORMAL << std::endl;
return r;
}
-int OSD::peek_super(const char *dev, nstring& magic, ceph_fsid_t& fsid, int& whoami)
+int OSD::peek_super(const char *dev, const char *journal, nstring& magic, ceph_fsid_t& fsid, int& whoami)
{
- ObjectStore *store = create_object_store(dev, NULL);
+ ObjectStore *store = create_object_store(dev, journal);
if (!store)
return -ENODEV;
int err = store->mount();
static int find_osd_dev(char *result, int whoami);
static ObjectStore *create_object_store(const char *dev, const char *jdev);
static int mkfs(const char *dev, const char *jdev, ceph_fsid_t fsid, int whoami);
- static int peek_super(const char *dev, nstring& magic, ceph_fsid_t& fsid, int& whoami);
+ static int peek_super(const char *dev, const char *journal, nstring& magic, ceph_fsid_t& fsid, int& whoami);
// startup/shutdown
int init();