]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/common/version: append vendor release to ceph version(s) output 67299/head
authorNaveen Naidu <naveennaidu479@gmail.com>
Wed, 11 Feb 2026 08:48:34 +0000 (08:48 +0000)
committerNaveen Naidu <naveennaidu479@gmail.com>
Thu, 26 Feb 2026 06:09:04 +0000 (11:39 +0530)
commit541439b290001e1bb15dc9b2b40671671c2b85c4
tree376c92e4fe07467762b51eda586cb50803117030
parentcc64fab70a7461f69d05383a379e7f58ec56db05
src/common/version: append vendor release to ceph version(s) output

Introduce a build-time mechanism to allow vendors or downstream
distributions to append their release/version metadata to the output of
ceph version and ceph versions.

The release string is read from the file `/etc/ceph_version` and appends
it to the version string as `release <value>`. If no value is supplied
or the file is empty, the version output remains unchanged.

Example:
If the `/etc/ceph_version` file has "8.1.0" as string then,
ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0

Signed-off-by: Naveen Naidu <naveen.naidu@ibm.com>
src/common/version.cc