提交 fa0b72e9 编写于 作者: S Sage Weil

ceph: show meaningful version on module load

Kill the old git revision; print the ceph version and protocol
versions instead.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 e324b8f9
#ifndef __CEPH_VERSION_H
#define __CEPH_VERSION_H
#define CEPH_GIT_VER 335cd8f952b457095ea2a66aee3db50efb63c91d
#endif
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <linux/version.h> #include <linux/version.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include "ceph_ver.h"
#include "decode.h" #include "decode.h"
#include "super.h" #include "super.h"
#include "mon_client.h" #include "mon_client.h"
...@@ -903,7 +902,9 @@ static int __init init_ceph(void) ...@@ -903,7 +902,9 @@ static int __init init_ceph(void)
if (ret) if (ret)
goto out_icache; goto out_icache;
pr_info("loaded (%s)\n", STRINGIFY(CEPH_GIT_VER)); pr_info("loaded %d.%d.%d (mon/mds/osd proto %d/%d/%d)\n",
CEPH_VERSION_MAJOR, CEPH_VERSION_MINOR, CEPH_VERSION_PATCH,
CEPH_MONC_PROTOCOL, CEPH_MDSC_PROTOCOL, CEPH_OSDC_PROTOCOL);
return 0; return 0;
out_icache: out_icache:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册