From 18a9d6d8c98fa8cc2bf6763cf2ec441e4889e090 Mon Sep 17 00:00:00 2001 From: shuaihaowei Date: Thu, 23 Oct 2025 16:22:36 +0800 Subject: [PATCH] fix vdostats output error --- 0004-fix-vdostats-output-error.patch | 26 ++++++++++++++++++++++++++ vdo.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0004-fix-vdostats-output-error.patch diff --git a/0004-fix-vdostats-output-error.patch b/0004-fix-vdostats-output-error.patch new file mode 100644 index 0000000..244539f --- /dev/null +++ b/0004-fix-vdostats-output-error.patch @@ -0,0 +1,26 @@ +From 59ad7982024fcc557e720235a11e345244e6840e Mon Sep 17 00:00:00 2001 +From: Matthew Sakai +Date: Thu, 30 Apr 2024 23:19:14 -0400 +Subject: [PATCH] fix vdostats output error + +--- a/utils/vdo/messageStatsReader.c ++++ b/utils/vdo/messageStatsReader.c +@@ -864,15 +864,6 @@ static int read_vdo_statistics(char **buf, + if (result != VDO_SUCCESS) { + return result; + } +- result = skip_string(buf, "releaseVersion : "); +- if (result != VDO_SUCCESS) { +- return result; +- } +- result = read_uint32_t(buf, +- &stats->release_version); +- if (result != VDO_SUCCESS) { +- return result; +- } + /** Number of blocks used for data */ + result = skip_string(buf, "dataBlocksUsed : "); + if (result != VDO_SUCCESS) { +-- +2.43.0 + diff --git a/vdo.spec b/vdo.spec index 7a2978d..c833fc6 100644 --- a/vdo.spec +++ b/vdo.spec @@ -1,6 +1,6 @@ Name: vdo Version: 8.2.2.2 -Release: 2 +Release: 3 Summary: Management tools for Virtual Data Optimizer License: GPLv2 URL: http://github.com/dm-vdo/vdo @@ -8,6 +8,7 @@ Source0: https://github.com/dm-vdo/vdo/archive/refs/tags/%{version}.tar.gz Patch0001: 0001-Add-loongarch64-support.patch Patch0002: 0002-fix_dmeventd_linking.patch Patch0003: 0003-RISC-V-support.patch +Patch0004: 0004-fix-vdostats-output-error.patch BuildRequires: gcc libuuid-devel device-mapper-devel device-mapper-event-devel BuildRequires: zlib-devel libblkid-devel @@ -54,6 +55,9 @@ This package provides the user-space management tools for VDO. %{_mandir}/man8/* %changelog +* Thu Oct 23 2025 weishuaihao - 8.2.2.2-3 +- Fix vdostats output error + * Sun Apr 28 2024 yinsist - 8.2.2.2-2 - Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture -- Gitee