Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
7f4a441c51
!24 [sync] PR-20: Update to version 8.1.0.264 to fix get volume instance number error
From: @openeuler-sync-bot 
Reviewed-by: @starlet-dx 
Signed-off-by: @starlet-dx
2024-05-08 07:56:43 +00:00
wang--ge
40a5bb1510 update to version 8.1.0.264
(cherry picked from commit cfacea5acb16a14d1ecd8b2ed4dea1da0e6d0d4b)
2024-05-08 14:55:23 +08:00
openeuler-ci-bot
d096d1cd9f
!9 [sync] PR-6: Upgrade to 6.2.6.14
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-10-18 02:14:12 +00:00
houyingchao
84a33b3357 Upgrade to 6.2.6.14
(cherry picked from commit 5b8af6944dec529072805b8c7528ea90916478c7)
2022-10-14 16:47:27 +08:00
openeuler-ci-bot
ea33efab95 !4 fix compile failed
Merge pull request !4 from 雷炬/master
2020-06-05 15:04:46 +08:00
lei_ju
2f1adb35c6 Fix null string and misaligned pointers 2020-06-05 14:19:35 +08:00
openeuler-ci-bot
9e74a7a65e !3 add yaml file
Merge pull request !3 from sigui/master
2020-05-18 18:13:36 +08:00
si-gui
678db9b0ca add yaml file 2020-05-12 18:09:17 +08:00
openeuler-ci-bot
cdaa6852a0 !1 package init
Merge pull request !1 from sherlock2010/master
2020-02-18 11:33:03 +08:00
sherlock2010
bb0d1c6044 package init 2020-02-18 11:27:01 +08:00
4 changed files with 126 additions and 0 deletions

BIN
8.1.0.264.tar.gz Normal file

Binary file not shown.

30
Adapt-service-file.patch Normal file
View File

@ -0,0 +1,30 @@
From ec4859836b01af44977421edda5670045fca5c0a Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 7 May 2024 19:52:23 +0800
Subject: [PATCH] adapt service file
---
examples/systemd/vdo.service | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/examples/systemd/vdo.service b/examples/systemd/vdo.service
index abfd836..3bf9371 100644
--- a/examples/systemd/vdo.service
+++ b/examples/systemd/vdo.service
@@ -1,3 +1,13 @@
[Unit]
Description=VDO volume services (provided for compatibility)
Documentation=man:vdo(8)
+After=systemd-remount-fs.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml
+ExecStop=/usr/bin/vdo stop --all --confFile /etc/vdoconf.yml
+
+[Install]
+WantedBy=multi-user.target
--
2.33.0

92
vdo.spec Normal file
View File

@ -0,0 +1,92 @@
Name: vdo
Version: 8.1.0.264
Release: 1
Summary: Management tools for Virtual Data Optimizer
License: GPLv2
URL: http://github.com/dm-vdo/vdo
Source0: https://github.com/dm-vdo/vdo/archive/refs/tags/%{version}.tar.gz
Patch0: Adapt-service-file.patch
BuildRequires: gcc libuuid-devel device-mapper-devel device-mapper-event-devel
BuildRequires: valgrind-devel python3 python3-devel zlib-devel systemd
%{?systemd_requires}
Requires: lvm2 >= 2.02 python3-PyYAML >= 3.10 libuuid >= 2.23 kmod-kvdo >= 6.2 util-linux >= 2.32.1
Provides: kvdo-kmod-common = %{version}
%define __requires_exclude perl
%description
Virtual Data Optimizer (VDO) is a device mapper target that delivers
block-level deduplication, compression, and thin provisioning.
This package provides the user-space management tools for VDO.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%make_build
%install
%make_install DESTDIR=%{buildroot} INSTALLOWNER= bindir=%{_bindir} \
defaultdocdir=%{_defaultdocdir} name=%{name} \
python3_sitelib=%{python3_sitelib} mandir=%{_mandir} \
unitdir=%{_unitdir} presetdir=%{_presetdir}
# Fix the python3 shebangs
for file in %{_bindir}/vdo \
%{_bindir}/vdostats
do
pathfix.py -pni "%{__python3}" %{buildroot}${file}
done
%post
%systemd_post vdo.service
%preun
%systemd_preun vdo.service
%postun
%systemd_postun_with_restart vdo.service
%files
%defattr(-,root,root)
%dir %{_defaultdocdir}/%{name}
%doc CONTRIBUTORS.txt README.md
%doc %{_defaultdocdir}/%{name}/examples/*
%license %{_defaultdocdir}/%{name}/COPYING
%{_bindir}/*
%dir %{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}/__init__.py
%{python3_sitelib}/%{name}/__pycache__/__init__.cpython-*.pyc
%{python3_sitelib}/%{name}/__pycache__/__init__.cpython-*.opt-1.pyc
%dir %{python3_sitelib}/%{name}/vdomgmnt/
%{python3_sitelib}/%{name}/vdomgmnt/*
%dir %{python3_sitelib}/%{name}/statistics/
%{python3_sitelib}/%{name}/statistics/*
%dir %{python3_sitelib}/%{name}/utils/
%{python3_sitelib}/%{name}/utils/*
%{_unitdir}/vdo.service
%{_presetdir}/97-vdo.preset
/bash_completion.d/vdo
/bash_completion.d/vdostats
/etc/udev/rules.d/69-vdo-start-by-dev.rules
/usr/lib/systemd/system/vdo-start-by-dev@.service
%files help
%defattr(-,root,root)
%{_mandir}/man8/*
%changelog
* Tue May 07 2024 Ge Wang <wang__ge@126.com> - 8.1.0.264-1
- Upgrade to 8.1.0.264
* Fri May 20 2022 houyingchao <houyingchao@h-partners.com> - 6.2.6.14-1
- Upgrade to 6.2.6.14
* Fri Jun 5 2020 leiju<leiju4@huawei.com> - 6.2.0.298-13
- Fix null string and misaligned pointers
* Tue Feb 18 2019 cangyi<cangyi@huawei.com> - 6.2.0.298-12
- Package init

4
vdo.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: dm-vdo/vdo
tag_prefix: "^v"
seperator: "."