Skip to content

Commit 8074a0a

Browse files
committed
common/version: ceph-osd --version to specify crimson
with rpm package copy over crimson-osd over ceph-osd, we don't have way to know if we are using crimson osd or classic. with --version output we will get the output if we are using crimson. Fixes: https://tracker.ceph.com/issues/67227 Signed-off-by: Nitzan Mordechai <[email protected]>
1 parent 616fbc1 commit 8074a0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/common/version.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ std::string const pretty_version_to_str(void)
4949
oss << "ceph version " << CEPH_GIT_NICE_VER
5050
<< " (" << STRINGIFY(CEPH_GIT_VER) << ") "
5151
<< ceph_release_name(CEPH_RELEASE)
52-
<< " (" << CEPH_RELEASE_TYPE << ")";
52+
<< " (" << CEPH_RELEASE_TYPE << ")"
53+
#ifdef WITH_SEASTAR
54+
<< " (crimson)"
55+
#endif
56+
;
5357
return oss.str();
5458
}
5559

0 commit comments

Comments
 (0)