Rename VERSION define to VITASTOR_VERSION

This commit is contained in:
Vitaliy Filippov
2024-07-31 01:15:37 +03:00
parent 5b0aebada4
commit 306a3db7f3
12 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 2.8.12)
project(vitastor) project(vitastor)
set(VERSION "1.7.1") set(VITASTOR_VERSION "1.7.1")
add_subdirectory(src) add_subdirectory(src)
+3 -3
View File
@@ -1,9 +1,9 @@
VERSION ?= v1.7.1 VITASTOR_VERSION ?= v1.7.1
all: build push all: build push
build: build:
@docker build --rm -t vitalif/vitastor-csi:$(VERSION) . @docker build --rm -t vitalif/vitastor-csi:$(VITASTOR_VERSION) .
push: push:
@docker push vitalif/vitastor-csi:$(VERSION) @docker push vitalif/vitastor-csi:$(VITASTOR_VERSION)
+2 -2
View File
@@ -50,7 +50,7 @@ from cinder.volume import configuration
from cinder.volume import driver from cinder.volume import driver
from cinder.volume import volume_utils from cinder.volume import volume_utils
VERSION = '1.7.1' VITASTOR_VERSION = '1.7.1'
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
@@ -238,7 +238,7 @@ class VitastorDriver(driver.CloneableImageVD,
stats = { stats = {
'vendor_name': 'Vitastor', 'vendor_name': 'Vitastor',
'driver_version': self.VERSION, 'driver_version': VITASTOR_VERSION,
'storage_protocol': 'vitastor', 'storage_protocol': 'vitastor',
'total_capacity_gb': 'unknown', 'total_capacity_gb': 'unknown',
'free_capacity_gb': 'unknown', 'free_capacity_gb': 'unknown',
+1 -1
View File
@@ -19,7 +19,7 @@ if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
endif() endif()
add_definitions(-DVERSION="1.7.1") add_definitions(-DVITASTOR_VERSION="1.7.1")
add_definitions(-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -fno-omit-frame-pointer -I ${CMAKE_SOURCE_DIR}/src) add_definitions(-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -fno-omit-frame-pointer -I ${CMAKE_SOURCE_DIR}/src)
add_link_options(-fno-omit-frame-pointer) add_link_options(-fno-omit-frame-pointer)
if (${WITH_ASAN}) if (${WITH_ASAN})
+1 -1
View File
@@ -13,7 +13,7 @@ target_link_libraries(vitastor_blk
# for timerfd_manager # for timerfd_manager
vitastor_common vitastor_common
) )
set_target_properties(vitastor_blk PROPERTIES VERSION ${VERSION} SOVERSION 0) set_target_properties(vitastor_blk PROPERTIES VERSION ${VITASTOR_VERSION} SOVERSION 0)
if (${WITH_FIO}) if (${WITH_FIO})
# libfio_vitastor_blk.so # libfio_vitastor_blk.so
+1 -1
View File
@@ -29,7 +29,7 @@ target_link_libraries(vitastor_client
${LIBURING_LIBRARIES} ${LIBURING_LIBRARIES}
${IBVERBS_LIBRARIES} ${IBVERBS_LIBRARIES}
) )
set_target_properties(vitastor_client PROPERTIES VERSION ${VERSION} SOVERSION 0) set_target_properties(vitastor_client PROPERTIES VERSION ${VITASTOR_VERSION} SOVERSION 0)
configure_file(vitastor.pc.in vitastor.pc @ONLY) configure_file(vitastor.pc.in vitastor.pc @ONLY)
if (${WITH_FIO}) if (${WITH_FIO})
+1 -1
View File
@@ -253,7 +253,7 @@ nla_put_failure:
const char *exe_name = NULL; const char *exe_name = NULL;
const char *help_text = const char *help_text =
"Vitastor NBD proxy " VERSION "\n" "Vitastor NBD proxy " VITASTOR_VERSION "\n"
"(c) Vitaliy Filippov, 2020+ (VNPL-1.1)\n" "(c) Vitaliy Filippov, 2020+ (VNPL-1.1)\n"
"\n" "\n"
"COMMANDS:\n" "COMMANDS:\n"
+1 -1
View File
@@ -17,7 +17,7 @@
static const char *exe_name = NULL; static const char *exe_name = NULL;
static const char* help_text = static const char* help_text =
"Vitastor command-line tool " VERSION "\n" "Vitastor command-line tool " VITASTOR_VERSION "\n"
"(c) Vitaliy Filippov, 2019+ (VNPL-1.1)\n" "(c) Vitaliy Filippov, 2019+ (VNPL-1.1)\n"
"\n" "\n"
"COMMANDS:\n" "COMMANDS:\n"
+1 -1
View File
@@ -5,7 +5,7 @@
#include "str_util.h" #include "str_util.h"
static const char *help_text = static const char *help_text =
"Vitastor disk management tool " VERSION "\n" "Vitastor disk management tool " VITASTOR_VERSION "\n"
"(c) Vitaliy Filippov, 2022+ (VNPL-1.1)\n" "(c) Vitaliy Filippov, 2022+ (VNPL-1.1)\n"
"\n" "\n"
"COMMANDS:\n" "COMMANDS:\n"
+1 -1
View File
@@ -10,7 +10,7 @@ set_target_properties(vitastor_kv PROPERTIES PUBLIC_HEADER "kv/vitastor_kv.h")
target_link_libraries(vitastor_kv target_link_libraries(vitastor_kv
vitastor_client vitastor_client
) )
set_target_properties(vitastor_kv PROPERTIES VERSION ${VERSION} SOVERSION 0) set_target_properties(vitastor_kv PROPERTIES VERSION ${VITASTOR_VERSION} SOVERSION 0)
# vitastor-kv # vitastor-kv
add_executable(vitastor-kv add_executable(vitastor-kv
+1 -1
View File
@@ -53,7 +53,7 @@ nfs_proxy_t::~nfs_proxy_t()
} }
static const char* help_text = static const char* help_text =
"Vitastor NFS 3.0 proxy " VERSION "\n" "Vitastor NFS 3.0 proxy " VITASTOR_VERSION "\n"
"(c) Vitaliy Filippov, 2021+ (VNPL-1.1)\n" "(c) Vitaliy Filippov, 2021+ (VNPL-1.1)\n"
"\n" "\n"
"vitastor-nfs (--fs <NAME> | --block) [-o <OPT>] mount <MOUNTPOINT>\n" "vitastor-nfs (--fs <NAME> | --block) [-o <OPT>] mount <MOUNTPOINT>\n"
+1 -1
View File
@@ -20,7 +20,7 @@ static void handle_sigint(int sig)
} }
static const char* help_text = static const char* help_text =
"Vitastor OSD (block object storage daemon) " VERSION "\n" "Vitastor OSD (block object storage daemon) " VITASTOR_VERSION "\n"
"(c) Vitaliy Filippov, 2019+ (VNPL-1.1)\n" "(c) Vitaliy Filippov, 2019+ (VNPL-1.1)\n"
"\n" "\n"
"OSDs are usually started by vitastor-disk.\n" "OSDs are usually started by vitastor-disk.\n"