automatic version update by autodist [release 1.0.0-1mamba;Sun Jan 29 2023]
This commit is contained in:
parent
67ca47533b
commit
5b8a534dda
11
thin-provisioning-tools-1.0.0-fix-u64-on-32bit.patch
Normal file
11
thin-provisioning-tools-1.0.0-fix-u64-on-32bit.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs.orig 2023-02-11 14:35:14.957403153 +0100
|
||||||
|
+++ thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs 2023-02-11 14:37:41.496985618 +0100
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
let hint_size = opts.nr_blocks * (opts.max_hint_width as u64 + HINT_OVERHEAD_PER_BLOCK);
|
||||||
|
|
||||||
|
let mut size = TRANSACTION_OVERHEAD + mapping_size + hint_size;
|
||||||
|
- size = std::cmp::min(size, (MAX_METADATA_BLOCKS * BLOCK_SIZE) as u64);
|
||||||
|
+ size = std::cmp::min(size, MAX_METADATA_BLOCKS as u64 * BLOCK_SIZE as u64);
|
||||||
|
|
||||||
|
Ok(size)
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
Name: thin-provisioning-tools
|
Name: thin-provisioning-tools
|
||||||
Version: 0.9.0
|
Version: 1.0.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets
|
Summary: A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
@ -7,17 +7,14 @@ Vendor: openmamba
|
|||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://github.com/jthornber/thin-provisioning-tools
|
URL: https://github.com/jthornber/thin-provisioning-tools
|
||||||
## GITSOURCE https://github.com/jthornber/thin-provisioning-tools.git v0.7.6
|
|
||||||
Source: https://github.com/jthornber/thin-provisioning-tools.git/v%{version}/thin-provisioning-tools-%{version}.tar.bz2
|
Source: https://github.com/jthornber/thin-provisioning-tools.git/v%{version}/thin-provisioning-tools-%{version}.tar.bz2
|
||||||
|
Patch0: thin-provisioning-tools-1.0.0-fix-u64-on-32bit.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libaio-devel
|
|
||||||
BuildRequires: libexpat-devel
|
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libstdc++6-devel
|
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRequires: rustc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets.
|
A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets.
|
||||||
@ -26,65 +23,40 @@ A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-e
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," autoconf/config.sub
|
%ifarch arm %{ix86}
|
||||||
autoconf
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
cargo build --release
|
||||||
|
|
||||||
%make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall STRIP=/bin/true
|
|
||||||
|
%makeinstall \
|
||||||
|
STRIP=/bin/true \
|
||||||
|
DESTDIR=%{buildroot}%{_prefix} \
|
||||||
|
BINDIR=%{buildroot}%{_sbindir} \
|
||||||
|
DATADIR=%{buildroot}%{_datadir}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/cache_check
|
%{_sbindir}/cache_*
|
||||||
%{_sbindir}/cache_dump
|
%{_sbindir}/era_*
|
||||||
%{_sbindir}/cache_metadata_size
|
|
||||||
%{_sbindir}/cache_repair
|
|
||||||
%{_sbindir}/cache_restore
|
|
||||||
%{_sbindir}/cache_writeback
|
|
||||||
%{_sbindir}/era_check
|
|
||||||
%{_sbindir}/era_dump
|
|
||||||
%{_sbindir}/era_invalidate
|
|
||||||
%{_sbindir}/era_restore
|
|
||||||
%{_sbindir}/pdata_tools
|
%{_sbindir}/pdata_tools
|
||||||
%{_sbindir}/thin_check
|
%{_sbindir}/thin_*
|
||||||
%{_sbindir}/thin_delta
|
%{_mandir}/man8/cache_*.8*
|
||||||
%{_sbindir}/thin_dump
|
%{_mandir}/man8/era_*.8*
|
||||||
%{_sbindir}/thin_ls
|
%{_mandir}/man8/thin_*.8*
|
||||||
%{_sbindir}/thin_metadata_size
|
|
||||||
%{_sbindir}/thin_repair
|
|
||||||
%{_sbindir}/thin_restore
|
|
||||||
%{_sbindir}/thin_rmap
|
|
||||||
%{_sbindir}/thin_trim
|
|
||||||
%{_mandir}/man8/cache_check.8*
|
|
||||||
%{_mandir}/man8/cache_dump.8*
|
|
||||||
%{_mandir}/man8/cache_metadata_size.8*
|
|
||||||
%{_mandir}/man8/cache_repair.8*
|
|
||||||
%{_mandir}/man8/cache_restore.8*
|
|
||||||
%{_mandir}/man8/cache_writeback.8*
|
|
||||||
%{_mandir}/man8/era_check.8*
|
|
||||||
%{_mandir}/man8/era_dump.8*
|
|
||||||
%{_mandir}/man8/era_invalidate.8*
|
|
||||||
%{_mandir}/man8/era_restore.8*
|
|
||||||
%{_mandir}/man8/thin_check.8*
|
|
||||||
%{_mandir}/man8/thin_delta.8*
|
|
||||||
%{_mandir}/man8/thin_dump.8*
|
|
||||||
%{_mandir}/man8/thin_ls.8*
|
|
||||||
%{_mandir}/man8/thin_metadata_size.8*
|
|
||||||
%{_mandir}/man8/thin_repair.8*
|
|
||||||
%{_mandir}/man8/thin_restore.8*
|
|
||||||
%{_mandir}/man8/thin_rmap.8*
|
|
||||||
%{_mandir}/man8/thin_trim.8*
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 29 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Sat Aug 22 2020 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
* Sat Aug 22 2020 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user