This prevents consumers from this data to have to fully parse
and split the 'ceph_version' string which is prone to errors.
ceph_version_short only contains the version number (maj, min, patch)
and ceph_release the codename, eg, luminous.
Signed-off-by: Wido den Hollander <wido@42on.com>
{
// version
(*m)["ceph_version"] = pretty_version_to_str();
+ (*m)["ceph_version_short"] = ceph_version_to_str();
+ (*m)["ceph_release"] = ceph_release_to_str();
// kernel info
struct utsname u;
return CEPH_GIT_NICE_VER;
}
+const char *ceph_release_to_str(void)
+{
+ return ceph_release_name(CEPH_RELEASE);
+}
+
const char *git_version_to_str(void)
{
return STRINGIFY(CEPH_GIT_VER);
// Return a string describing the Ceph version
const char *ceph_version_to_str(void);
+// Return a string with the Ceph release
+const char *ceph_release_to_str(void);
+
// Return a string describing the git version
const char *git_version_to_str(void);