Fedora Release Engineering a75ca8
#
d295f1
# Copyright (C) 2011-2017 Red Hat, Inc
Fedora Release Engineering a75ca8
#
99ea43
Heinz Mauelshagen 44a227
Summary: Device-mapper Persistent Data Tools
Fedora Release Engineering a75ca8
Name: device-mapper-persistent-data
e2f209
Version: 0.7.5
c327b6
Release: 3%{?dist}
Fedora Release Engineering a75ca8
License: GPLv3+
Fedora Release Engineering a75ca8
Group: System Environment/Base
Fedora Release Engineering a75ca8
URL: https://github.com/jthornber/thin-provisioning-tools
7d940d
#Source0: https://github.com/jthornber/thin-provisioning-tools/archive/thin-provisioning-tools-% {version}.tar.gz
7d940d
Source0: https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}.tar.gz
7d940d
Patch0: device-mapper-persistent-data-avoid-strip.patch
2f0030
Heinz Mauelshagen 44a227
BuildRequires: autoconf, expat-devel, libaio-devel, libstdc++-devel, boost-devel
Fedora Release Engineering a75ca8
Requires: expat
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%description
Heinz Mauelshagen 70cb8d
thin-provisioning-tools contains check,dump,restore,repair,rmap
Heinz Mauelshagen 70cb8d
and metadata_size tools to manage device-mapper thin provisioning
Heinz Mauelshagen 44a227
target metadata devices; cache check,dump,metadata_size,restore
Heinz Mauelshagen 44a227
and repair tools to manage device-mapper cache metadata devices
Heinz Mauelshagen 44a227
are included and era check, dump, restore and invalidate to manage
Heinz Mauelshagen 44a227
snapshot eras
Heinz Mauelshagen 44a227
Fedora Release Engineering a75ca8
%prep
7d940d
%setup -q -n thin-provisioning-tools-%{version}
7d940d
%patch0 -p1 -b .avoid_strip
Heinz Mauelshagen 691fca
echo %{version}-%{release} > VERSION
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%build
Heinz Mauelshagen 10c502
autoconf
Heinz Mauelshagen 9d194b
%configure --with-optimisation=
Heinz Mauelshagen 9d194b
make %{?_smp_mflags} V=
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%install
Fedora Release Engineering a75ca8
make DESTDIR=%{buildroot} MANDIR=%{_mandir} install
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%clean
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%files
Heinz Mauelshagen 10c502
%doc COPYING README.md
Heinz Mauelshagen 70cb8d
%{_mandir}/man8/cache_check.8.gz
Heinz Mauelshagen 70cb8d
%{_mandir}/man8/cache_dump.8.gz
7d940d
%{_mandir}/man8/cache_metadata_size.8.gz
Heinz Mauelshagen 70cb8d
%{_mandir}/man8/cache_repair.8.gz
d295f1
%{_mandir}/man8/cache_restore.8.gz
d295f1
%{_mandir}/man8/cache_writeback.8.gz
Heinz Mauelshagen 44a227
%{_mandir}/man8/era_check.8.gz
Heinz Mauelshagen 44a227
%{_mandir}/man8/era_dump.8.gz
Heinz Mauelshagen 44a227
%{_mandir}/man8/era_invalidate.8.gz
7d940d
%{_mandir}/man8/era_restore.8.gz
Milan Broz 9aa597
%{_mandir}/man8/thin_check.8.gz
2f0030
%{_mandir}/man8/thin_delta.8.gz
Heinz Mauelshagen afcf52
%{_mandir}/man8/thin_dump.8.gz
857928
%{_mandir}/man8/thin_ls.8.gz
Heinz Mauelshagen afcf52
%{_mandir}/man8/thin_metadata_size.8.gz
Heinz Mauelshagen 44a227
%{_mandir}/man8/thin_repair.8.gz
d295f1
%{_mandir}/man8/thin_restore.8.gz
Heinz Mauelshagen afcf52
%{_mandir}/man8/thin_rmap.8.gz
2f0030
%{_mandir}/man8/thin_trim.8.gz
Heinz Mauelshagen 44a227
%{_sbindir}/pdata_tools
Heinz Mauelshagen 70cb8d
%{_sbindir}/cache_check
Heinz Mauelshagen 70cb8d
%{_sbindir}/cache_dump
Heinz Mauelshagen 44a227
%{_sbindir}/cache_metadata_size
Heinz Mauelshagen 70cb8d
%{_sbindir}/cache_repair
d295f1
%{_sbindir}/cache_restore
d295f1
%{_sbindir}/cache_writeback
Heinz Mauelshagen 9f61a2
%{_sbindir}/era_check
Heinz Mauelshagen 9f61a2
%{_sbindir}/era_dump
Heinz Mauelshagen 9f61a2
%{_sbindir}/era_invalidate
d295f1
%{_sbindir}/era_restore
Milan Broz 00e96b
%{_sbindir}/thin_check
2f0030
%{_sbindir}/thin_delta
Heinz Mauelshagen afcf52
%{_sbindir}/thin_dump
857928
%{_sbindir}/thin_ls
Heinz Mauelshagen afcf52
%{_sbindir}/thin_metadata_size
Heinz Mauelshagen 44a227
%{_sbindir}/thin_repair
d295f1
%{_sbindir}/thin_restore
Heinz Mauelshagen 10c502
%{_sbindir}/thin_rmap
2f0030
%{_sbindir}/thin_trim
7d940d
#% {_sbindir}/thin_show_duplicates
Fedora Release Engineering a75ca8
Fedora Release Engineering a75ca8
%changelog
c327b6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
c327b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c327b6
40e854
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.7.5-2
40e854
- Rebuilt for Boost 1.66
40e854
e2f209
* Tue Nov 14 2017 Marian Csontos <mcsontos@redhat.com> - 0.7.5-1
e2f209
- Fix version 2 metadata corruption in cache_restore.
e2f209
5d5ebc
* Fri Oct 06 2017 Marian Csontos <mcsontos@redhat.com> - 0.7.3-1
5d5ebc
- Update to latest bugfix and documentation update release.
5d5ebc
- *_restore tools wipe superblock as a last resort.
5d5ebc
- Add thin_check --override-mapping-root.
5d5ebc
7d940d
* Fri Sep 22 2017 Marian Csontos <mcsontos@redhat.com> - 0.7.2-1
7d940d
- Update to latest upstream release including various bug fixes and new features.
7d940d
- Fix segfault when dump tools are given a tiny metadata file.
7d940d
- Fix -V exiting with 1.
7d940d
- Fix thin_check when running on XML dump instead of binary data.
7d940d
- Speed up free block searching.
7d940d
76f231
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.6.rc6
76f231
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
76f231
a3db74
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.5.rc6
a3db74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a3db74
b557b0
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 0.7.0-0.4.rc6
b557b0
- Rebuilt for Boost 1.64
b557b0
4378ae
* Tue May 23 2017 Marian Csontos <mcsontos@redhat.com> - 0.7.0-0.3.rc6
4378ae
- Rebuilt for mass rebuild incorrectly tagging master to .fc26
4378ae
db4dc6
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-0.2.rc6
db4dc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
db4dc6
4cd2a3
* Mon Mar 27 2017 Peter Rajnoha <prajnoha@redhat.com> - 0.7.0-0.1-rc6
4cd2a3
- Don't open devices as writeable if --clear-needs-check-flag is not set.
4cd2a3
- Fix cache metadata format version 2 superblock packing.
4cd2a3
157df5
* Wed Mar 22 2017 Peter Rajnoha <prajnoha@redhat.com> - 0.7.0-0.1-rc5
157df5
- Switch to a faster implementation of crc32 used for checksums.
157df5
f95d0a
* Tue Mar 21 2017 Peter Rajnoha <prajnoha@redhat.com> - 0.7.0-0.1-rc4
f95d0a
- Add support for cache metadata format version 2 in cache tools.
f95d0a
de968c
* Thu Mar 16 2017 Peter Rajnoha <prajnoha@redhat.com> - 0.7.0-0.1-rc3
de968c
- Fix compilation warnings and further code cleanup.
de968c
d295f1
* Thu Mar 09 2017 Peter Rajnoha <prajnoha@redhat.com> - 0.7.0-0.1-rc2
d295f1
- Update to latest upstream release including various bug fixes and new features.
d295f1
- New thin_show_duplicates command.
d295f1
- Add '--skip-mappings' and '--format custom' options to thin_dump.
d295f1
0a96e3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-3
0a96e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0a96e3
702f38
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.3-2
702f38
- Rebuilt for Boost 1.63
702f38
9e7d28
* Thu Sep 22 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.3-1
9e7d28
- Preallocate output file for thin_repair and thin_restore.
9e7d28
413d27
* Mon Jul 11 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-1
413d27
- Fixes providing proper use of compiler flags.
413d27
635d34
* Mon Apr 11 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc8
635d34
- Fixes for thin_trim.
635d34
5c01a0
* Tue Mar 22 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc7
5c01a0
- Fixes for thin_repair.
5c01a0
9e4b69
* Wed Mar 09 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc6
9e4b69
- Add new fields to thin_ls: MAPPED_BYTES, EXCLUSIVE_BYTES and SHARED_BYTES.
9e4b69
90fbaa
* Thu Feb 18 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc5
90fbaa
- Fixes for thin_delta.
90fbaa
18f5b7
* Mon Feb 15 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc4
18f5b7
- Fix bug in mapping comparison while using thin_delta.
18f5b7
99ea43
* Mon Feb 15 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc3
99ea43
- Fix recent regression in thin_repair.
99ea43
- Force g++-98 dialect.
99ea43
99ea43
* Mon Feb 15 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.2-0.1.rc1
99ea43
- Fix bug in thin_dump when using metadata snaps.
99ea43
dc1e21
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
dc1e21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dc1e21
bcbdab
* Wed Jan 20 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.6.0-1
bcbdab
- New thin_ls command.
bcbdab
44d473
* Wed Jan 20 2016 Peter Rajnoha <prajnoha@redhat.com> - 0.5.6-1
44d473
- era_invalidate may be run on live metadata if the --metadata-snap
44d473
  option is given.
44d473
ac257c
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.5.5-3
ac257c
- Rebuilt for Boost 1.60
ac257c
70a39d
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.5.5-2
70a39d
- Rebuilt for Boost 1.59
70a39d
7b3b0c
* Thu Aug 13 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.5-1
7b3b0c
- Support thin_delta's --metadata_snap option without specifying snap location.
7b3b0c
- Update man pages to make it clearer that tools shoulnd't be run on live metadata.
7b3b0c
- Fix bugs in the metadata reference counting for thin_check.
7b3b0c
4653be
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-3
4653be
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
4653be
3fb2f8
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.5.4-2
3fb2f8
- rebuild for Boost 1.58
3fb2f8
854d45
* Fri Jul 17 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.4-1
854d45
- Fix cache_check with --clear-needs-check-flag option to
854d45
  make sure metadata device is not open already by the tool
854d45
  when open with O_EXCL mode is requested.
854d45
fc57c1
* Fri Jul 03 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.3-1
fc57c1
- Tools now open the metadata device in O_EXCL mode to stop
fc57c1
  running the tools on active metadata.
fc57c1
20c2ae
* Fri Jul 03 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.2-1
20c2ae
- Fix bug in damage reporting in thin_dump and thin_check.
20c2ae
86a948
* Thu Jun 25 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.1-1
86a948
- Fix crash if tools are given a very large metadata device to restore to.
86a948
cc79a1
* Mon Jun 22 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.5.0-1
cc79a1
- Add space map checking for thin_check.
cc79a1
- Add --clear-needs-check option for cache_check.
cc79a1
- Update to latest upstream release.
cc79a1
1812d3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
1812d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1812d3
2f0030
* Mon Jun 08 2015 Peter Rajnoha <prajnoha@redhat.com> - 0.4.2-1
2f0030
- New thin_delta and thin_trim commands.
2f0030
- Update to latest upstream release.
2f0030
6e89b7
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.4.1-4
6e89b7
- Rebuilt for GCC 5 C++11 ABI change
6e89b7
Petr Machata ef64c7
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 0.4.1-3
Petr Machata ef64c7
- Rebuild for boost 1.57.0
Petr Machata ef64c7
2f0030
* Wed Oct 29 2014 Heinz Mauelshagen <heinzm@redhat.com> - 0.4.1-2
Heinz Mauelshagen e4d966
- Resolves: bz#1159466
Heinz Mauelshagen e4d966
2f0030
* Wed Oct 29 2014 Heinz Mauelshagen <heinzm@redhat.com> - 0.4.1-1
Heinz Mauelshagen 44a227
- New upstream version
Heinz Mauelshagen 44a227
- Manual header additions/fixes
Heinz Mauelshagen 44a227
a4b87b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-4
a4b87b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a4b87b
aab46d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-3
aab46d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aab46d
Petr Machata 51a54a
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.3.2-2
Petr Machata 51a54a
- Rebuild for boost 1.55.0
Petr Machata 51a54a
Heinz Mauelshagen e9af3e
* Fri Apr 11 2014 Heinz Mauelshagen <heinzm@redhat.com> - 0.3.2-1
Heinz Mauelshagen e9af3e
- New upstream version 0.3.2 fixing needs_check flag processing
Heinz Mauelshagen e9af3e
Heinz Mauelshagen 9f61a2
* Thu Mar 27 2014 Heinz Mauelshagen <heinzm@redhat.com> - 0.3.0-1
Heinz Mauelshagen 9f61a2
- New upstream version 0.3.0 introducing era_{check,dump,invalidate}
Heinz Mauelshagen 9f61a2
Heinz Mauelshagen 70cb8d
* Fri Oct 18 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.8-1
Heinz Mauelshagen 70cb8d
- New upstream version 0.2.8 introducing cache_{check,dump,repair,restore}
Heinz Mauelshagen 70cb8d
Heinz Mauelshagen 93bccb
* Tue Sep 17 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.7-1
Heinz Mauelshagen 93bccb
- New upstream version 0.2.7
Heinz Mauelshagen 93bccb
Heinz Mauelshagen bad876
* Wed Jul 31 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.3-1
Heinz Mauelshagen bad876
- New upstream version
Heinz Mauelshagen bad876
Heinz Mauelshagen bad876
* Tue Jul 30 2013 Dennis Gilmore <dennis@ausil.us> - 0.2.2-2
19bf08
- rebuild against boost 1.54.0
19bf08
Heinz Mauelshagen 944747
* Tue Jul 30 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.2-1
Heinz Mauelshagen 1211aa
- New upstream version
Heinz Mauelshagen 079fbb
- manual header fixes 
Heinz Mauelshagen 079fbb
Petr Machata 5c88a9
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 0.2.1-6
Petr Machata 5c88a9
- Rebuild for boost 1.54.0
Heinz Mauelshagen 1211aa
Heinz Mauelshagen c118e6
* Thu Jul 25 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.1-5
Heinz Mauelshagen c118e6
- enhance manual pages and fix typos
Heinz Mauelshagen c118e6
2f0030
* Thu Jul 18 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.1-4
Heinz Mauelshagen 691fca
- Update thin_metadata_size manual page
Heinz Mauelshagen 691fca
- thin_dump: support dumping default metadata snapshot
Heinz Mauelshagen 691fca
Heinz Mauelshagen afcf52
* Thu Jul 18 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.1-3
Heinz Mauelshagen afcf52
- New thin_metadata_size tool to estimate amount of metadata space
Heinz Mauelshagen afcf52
  based on block size, pool size and maximum amount of thin devs and snapshots
Heinz Mauelshagen afcf52
- support metadata snapshots in thin_dump tool
Heinz Mauelshagen afcf52
- New man pages for thin_metadata_size, thin_repair and thin_rmap and man page fixes
Heinz Mauelshagen afcf52
Heinz Mauelshagen 9d194b
* Tue Jul 16 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.1-2
Heinz Mauelshagen 9d194b
- Build with nostrip fix from Ville Skyttä
Heinz Mauelshagen 9d194b
Heinz Mauelshagen 9d194b
* Mon Jul 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.2.1-2
Heinz Mauelshagen 9d194b
- Let rpmbuild strip binaries, don't override optflags, build more verbose.
Heinz Mauelshagen 9d194b
Heinz Mauelshagen 10c502
* Fri Jul 12 2013 Heinz Mauelshagen <heinzm@redhat.com> - 0.2.1-1
Heinz Mauelshagen 10c502
- New upstream version.
Heinz Mauelshagen 10c502
cf3545
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-3
cf3545
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cf3545
787bba
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
787bba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
787bba
Milan Broz 00e96b
* Thu Apr 19 2012 Milan Broz <mbroz@redhat.com> - 0.1.4-1
Milan Broz 00e96b
- Fix thin_check man page (add -q option).
Milan Broz 00e96b
- Install utilities in /usr/sbin.
Milan Broz 00e96b
Milan Broz 19ed7a
* Tue Mar 13 2012 Milan Broz <mbroz@redhat.com> - 0.1.2-1
Milan Broz 19ed7a
- New upstream version.
Milan Broz 19ed7a
Milan Broz 136eab
* Mon Mar 05 2012 Milan Broz <mbroz@redhat.com> - 0.1.1-1
Milan Broz 136eab
- Fix quiet option.
Milan Broz 136eab
Milan Broz 9aa597
* Fri Mar 02 2012 Milan Broz <mbroz@redhat.com> - 0.1.0-1
Milan Broz 9aa597
- New upstream version.
Milan Broz 9aa597
aaceaf
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
aaceaf
- Rebuilt for c++ ABI breakage
aaceaf
dddc19
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-2
dddc19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dddc19
Fedora Release Engineering a75ca8
* Wed Dec 21 2011 Milan Broz <mbroz@redhat.com> - 0.0.1-1
Fedora Release Engineering a75ca8
- Initial version