From 1c1addc3a1e8869a8032c1a610387dd33e5db15d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 2 Sep 2009 13:35:23 -0700 Subject: [PATCH] ceph: include version in ceph_fs.h --- RELEASE_CHECKLIST | 1 + src/include/ceph_fs.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/RELEASE_CHECKLIST b/RELEASE_CHECKLIST index 2519405b453d8..8ffeb2a0540ca 100644 --- a/RELEASE_CHECKLIST +++ b/RELEASE_CHECKLIST @@ -4,6 +4,7 @@ $ ./build_upload_debian_packages.sh unstable amd64 - adjust version in configure.ac +- adjust version in src/include/ceph_fs.h - add entry to debian/changelog, with proper version - commit - git tag version diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index 19a02f78ebf4f..9345746345655 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -15,6 +15,18 @@ #include "msgr.h" #include "rados.h" +/* + * Ceph release version + */ +#define CEPH_VERSION_MAJOR 0 +#define CEPH_VERSION_MINOR 13 +#define CEPH_VERSION_PATCH 0 + +#define _CEPH_STRINGIFY(x) #x +#define CEPH_STRINGIFY(x) _CEPH_STRINGIFY(x) +#define CEPH_MAKE_VERSION(x, y, z) CEPH_STRINGIFY(x) "." CEPH_STRINGIFY(y) "." CEPH_STRINGIFY(z) +#define CEPH_VERSION CEPH_MAKE_VERSION(CEPH_VERSION_MAJOR, CEPH_VERSION_MINOR, CEPH_VERSION_PATCH) + /* * subprotocol versions. when specific messages types or high-level * protocols change, bump the affected components. we keep rev -- 2.39.5