...so that we get this piece of metadata from every
service uniformly.
Signed-off-by: John Spray <john.spray@redhat.com>
#include "common/debug.h"
#include "common/errno.h"
#include "common/strtol.h"
+#include "common/version.h"
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
void collect_sys_info(map<string, string> *m, CephContext *cct)
{
+ // version
+ (*m)["ceph_version"] = pretty_version_to_str();
+
// kernel info
struct utsname u;
int r = uname(&u);
void OSD::_collect_metadata(map<string,string> *pm)
{
- (*pm)["ceph_version"] = pretty_version_to_str();
-
// config info
(*pm)["osd_data"] = dev_path;
(*pm)["osd_journal"] = journal_path;