mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
osd: Make --get-journal-fsid not really start the osd.
This way, it won't need -i ID and it won't access the osd_data_dir. That makes it useful for locating the right osd to use with an external journal partition. Signed-off-by: Tommi Virtanen <tv@inktank.com>
This commit is contained in:
parent
435a5c1435
commit
8d718caf00
@ -265,6 +265,14 @@ int main(int argc, const char **argv)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (get_journal_fsid) {
|
||||
uuid_d fsid;
|
||||
int r = OSD::peek_journal_fsid(g_conf->osd_journal, fsid);
|
||||
if (r == 0)
|
||||
cout << fsid << std::endl;
|
||||
exit(r);
|
||||
}
|
||||
|
||||
string magic;
|
||||
uuid_d cluster_fsid, osd_fsid;
|
||||
int w;
|
||||
@ -297,13 +305,6 @@ int main(int argc, const char **argv)
|
||||
cout << osd_fsid << std::endl;
|
||||
exit(0);
|
||||
}
|
||||
if (get_journal_fsid) {
|
||||
uuid_d fsid;
|
||||
int r = OSD::peek_journal_fsid(g_conf->osd_journal, fsid);
|
||||
if (r == 0)
|
||||
cout << fsid << std::endl;
|
||||
exit(r);
|
||||
}
|
||||
|
||||
pick_addresses(g_ceph_context);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user