95c9391
Name:        libblockdev
64690cd
Version:     1.3
d86c7e2
Release:     6%{?dist}
95c9391
Summary:     A library for low-level manipulation with block devices
95c9391
License:     LGPLv2+
64690cd
URL:         https://github.com/rhinstaller/libblockdev
64690cd
Source0:     https://github.com/rhinstaller/libblockdev/archive/%{name}-%{version}.tar.gz
95c9391
ed6a23e
Patch0: blockdev_c_annotation_fix.patch
40b9ebd
Patch1: create_cache_pool_first.patch
d793d16
Patch2: thpoolcreate_round_size.patch
ed6a23e
95c9391
BuildRequires: glib2-devel
95c9391
BuildRequires: gobject-introspection-devel
95c9391
BuildRequires: cryptsetup-devel
95c9391
BuildRequires: device-mapper-devel
95c9391
BuildRequires: systemd-devel
95c9391
BuildRequires: dmraid-devel
c8bdcf2
BuildRequires: volume_key-devel >= 0.3.9-7
c8bdcf2
BuildRequires: nss-devel
c8bdcf2
BuildRequires: python-devel
eb93ef9
BuildRequires: python3-devel
c8bdcf2
BuildRequires: gtk-doc
c8bdcf2
BuildRequires: glib2-doc
af3620d
BuildRequires: kmod-devel
af3620d
cd2e4cf
# Needed for the escrow tests in tests/crypto_test.py, but not used to build
cd2e4cf
# BuildRequires: volume_key
cd2e4cf
# BuildRequires: nss-tools
cd2e4cf
eac5ac0
# Needed for python 2 vs. 3 compatibility in the tests, but not used to build
eac5ac0
# BuildRequires: python-six
eac5ac0
# BuildRequires: python3-six
eac5ac0
af3620d
%ifarch s390 s390x
af3620d
BuildRequires: s390utils-devel
af3620d
%endif
95c9391
95c9391
%description
95c9391
The libblockdev is a C library with GObject introspection support that can be
95c9391
used for doing low-level operations with block devices like setting up LVM,
95c9391
BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,...) and serves as
95c9391
a thin wrapper around its plugins' functionality. All the plugins, however, can
95c9391
be used as standalone libraries. One of the core principles of libblockdev is
95c9391
that it is stateless from the storage configuration's perspective (e.g. it has
95c9391
no information about VGs when creating an LV).
95c9391
95c9391
%package devel
95c9391
Summary:     Development files for libblockdev
95c9391
Requires: %{name}%{?_isa} = %{version}-%{release}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev library.
95c9391
64690cd
%package -n python2-blockdev
64690cd
Summary:     Python2 gobject-introspection bindings for libblockdev
64690cd
Requires: %{name}%{?_isa} = %{version}-%{release}
64690cd
Requires: pygobject3-base
64690cd
%{?python_provide:%python_provide python2-blockdev}
64690cd
64690cd
%description -n python2-blockdev
64690cd
This package contains enhancements to the gobject-introspection bindings for
64690cd
libblockdev in Python2.
64690cd
64690cd
%package -n python3-blockdev
64690cd
Summary:     Python3 gobject-introspection bindings for libblockdev
64690cd
Requires: %{name}%{?_isa} = %{version}-%{release}
64690cd
Requires: python3-gobject
64690cd
%{?python_provide:%python_provide python3-blockdev}
64690cd
64690cd
%description -n python3-blockdev
64690cd
This package contains enhancements to the gobject-introspection bindings for
64690cd
libblockdev in Python3.
95c9391
95c9391
%package utils
95c9391
Summary:     A library with utility functions for the libblockdev library
95c9391
95c9391
%description utils
95c9391
The libblockdev-utils is a library providing utility functions used by the
95c9391
libblockdev library and its plugins.
95c9391
95c9391
%package utils-devel
95c9391
Summary:     Development files for libblockdev-utils
95c9391
Requires: %{name}-utils%{?_isa} = %{version}-%{release}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description utils-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-utils library.
95c9391
95c9391
95c9391
%package btrfs
95c9391
Summary:     The BTRFS plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: btrfs-progs
95c9391
95c9391
%description btrfs
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the BTRFS-related functionality.
95c9391
95c9391
%package btrfs-devel
95c9391
Summary:     Development files for the libblockdev-btrfs plugin/library
95c9391
Requires: %{name}-btrfs%{?_isa} = %{version}-%{release}
95c9391
Requires: glib2-devel
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
95c9391
%description btrfs-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-btrfs plugin/library.
95c9391
95c9391
95c9391
%package crypto
95c9391
Summary:     The crypto plugin for the libblockdev library
95c9391
95c9391
%description crypto
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to encrypted devices (LUKS).
95c9391
95c9391
%package crypto-devel
95c9391
Summary:     Development files for the libblockdev-crypto plugin/library
95c9391
Requires: %{name}-crypto%{?_isa} = %{version}-%{release}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description crypto-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-crypto plugin/library.
95c9391
95c9391
95c9391
%package dm
95c9391
Summary:     The Device Mapper plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: device-mapper
95c9391
Requires: dmraid
95c9391
95c9391
%description dm
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to Device Mapper.
95c9391
95c9391
%package dm-devel
95c9391
Summary:     Development files for the libblockdev-dm plugin/library
95c9391
Requires: %{name}-dm%{?_isa} = %{version}-%{release}
95c9391
Requires: glib2-devel
95c9391
Requires: device-mapper-devel
95c9391
Requires: systemd-devel
95c9391
Requires: dmraid-devel
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
95c9391
%description dm-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-dm plugin/library.
95c9391
95c9391
af3620d
%package kbd
af3620d
Summary:     The KBD plugin for the libblockdev library
af3620d
Requires: %{name}-utils%{?_isa} >= 0.11
af3620d
Requires: bcache-tools >= 1.0.8
af3620d
af3620d
%description kbd
af3620d
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to kernel block devices (namely zRAM and
af3620d
Bcache).
af3620d
af3620d
%package kbd-devel
af3620d
Summary:     Development files for the libblockdev-kbd plugin/library
af3620d
Requires: %{name}-kbd%{?_isa} = %{version}-%{release}
af3620d
Requires: %{name}-utils-devel%{?_isa}
af3620d
Requires: glib2-devel
af3620d
af3620d
%description kbd-devel
af3620d
This package contains header files and pkg-config files needed for development
af3620d
with the libblockdev-kbd plugin/library.
af3620d
af3620d
95c9391
%package loop
95c9391
Summary:     The loop plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: util-linux
95c9391
95c9391
%description loop
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to loop devices.
95c9391
95c9391
%package loop-devel
95c9391
Summary:     Development files for the libblockdev-loop plugin/library
95c9391
Requires: %{name}-loop%{?_isa} = %{version}-%{release}
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description loop-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-loop plugin/library.
95c9391
95c9391
95c9391
%package lvm
95c9391
Summary:     The LVM plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: lvm2
95c9391
95c9391
%description lvm
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the LVM-related functionality.
95c9391
95c9391
%package lvm-devel
95c9391
Summary:     Development files for the libblockdev-lvm plugin/library
95c9391
Requires: %{name}-lvm%{?_isa} = %{version}-%{release}
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description lvm-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-lvm plugin/library.
95c9391
95c9391
95c9391
%package mdraid
95c9391
Summary:     The MD RAID plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: mdadm
95c9391
95c9391
%description mdraid
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to MD RAID.
95c9391
95c9391
%package mdraid-devel
95c9391
Summary:     Development files for the libblockdev-mdraid plugin/library
95c9391
Requires: %{name}-mdraid%{?_isa} = %{version}-%{release}
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description mdraid-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-mdraid plugin/library.
95c9391
95c9391
95c9391
%package mpath
95c9391
Summary:     The multipath plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: device-mapper-multipath
95c9391
95c9391
%description mpath
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to multipath devices.
95c9391
95c9391
%package mpath-devel
95c9391
Summary:     Development files for the libblockdev-mpath plugin/library
95c9391
Requires: %{name}-mpath%{?_isa} = %{version}-%{release}
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description mpath-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-mpath plugin/library.
95c9391
95c9391
95c9391
%package swap
95c9391
Summary:     The swap plugin for the libblockdev library
c7e130d
Requires: %{name}-utils%{?_isa} >= 0.11
95c9391
Requires: util-linux
95c9391
95c9391
%description swap
95c9391
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to swap devices.
95c9391
95c9391
%package swap-devel
95c9391
Summary:     Development files for the libblockdev-swap plugin/library
95c9391
Requires: %{name}-swap%{?_isa} = %{version}-%{release}
2d19ecb
Requires: %{name}-utils-devel%{?_isa}
95c9391
Requires: glib2-devel
95c9391
95c9391
%description swap-devel
95c9391
This package contains header files and pkg-config files needed for development
95c9391
with the libblockdev-swap plugin/library.
95c9391
af3620d
%package s390
af3620d
Summary:    The s390 plugin for the libblockdev library
af3620d
Requires: s390utils
af3620d
af3620d
%description s390
af3620d
The libblockdev library plugin (and in the same time a standalone library)
af3620d
providing the functionality related to s390 devices.
af3620d
af3620d
%package s390-devel
af3620d
Summary:     Development files for the libblockdev-s390 plugin/library
af3620d
Requires: %{name}-s390%{?_isa} = %{version}-%{release}
af3620d
Requires: %{name}-utils-devel%{?_isa}
af3620d
Requires: glib2-devel
af3620d
Requires: s390utils-devel
af3620d
af3620d
%description s390-devel
af3620d
This package contains header files and pkg-config files needed for development
af3620d
with the libblockdev-s390 plugin/library.
af3620d
95c9391
95c9391
%package plugins-all
95c9391
Summary:     Meta-package that pulls all the libblockdev plugins as dependencies
d954869
Requires: %{name}%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-btrfs%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-crypto%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-dm%{?_isa} = %{version}-%{release}
af3620d
Requires: %{name}-kbd%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-loop%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-lvm%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-mdraid%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-mpath%{?_isa} = %{version}-%{release}
9662ba6
Requires: %{name}-swap%{?_isa} = %{version}-%{release}
af3620d
%ifarch s390 s390x
af3620d
Requires: %{name}-s390%{?_isa} = %{version}-%{release}
af3620d
%endif
95c9391
95c9391
%description plugins-all
95c9391
A meta-package that pulls all the libblockdev plugins as dependencies.
95c9391
95c9391
95c9391
%prep
95c9391
%setup -q -n %{name}-%{version}
ed6a23e
%patch0 -p1
40b9ebd
%patch1 -p1
d793d16
%patch2 -p1
95c9391
95c9391
%build
af3620d
%configure
af3620d
%{__make} %{?_smp_mflags}
95c9391
95c9391
%install
af3620d
%{make_install}
af3620d
find %{buildroot} -type f -name "*.la" | xargs %{__rm}
95c9391
95c9391
95c9391
%post -p /sbin/ldconfig
95c9391
%postun -p /sbin/ldconfig
95c9391
%post utils -p /sbin/ldconfig
95c9391
%postun utils -p /sbin/ldconfig
95c9391
%post btrfs -p /sbin/ldconfig
95c9391
%postun btrfs -p /sbin/ldconfig
95c9391
%post crypto -p /sbin/ldconfig
95c9391
%postun crypto -p /sbin/ldconfig
95c9391
%post dm -p /sbin/ldconfig
95c9391
%postun dm -p /sbin/ldconfig
95c9391
%post loop -p /sbin/ldconfig
95c9391
%postun loop -p /sbin/ldconfig
95c9391
%post lvm -p /sbin/ldconfig
95c9391
%postun lvm -p /sbin/ldconfig
95c9391
%post mdraid -p /sbin/ldconfig
95c9391
%postun mdraid -p /sbin/ldconfig
95c9391
%post mpath -p /sbin/ldconfig
95c9391
%postun mpath -p /sbin/ldconfig
95c9391
%post swap -p /sbin/ldconfig
95c9391
%postun swap -p /sbin/ldconfig
af3620d
%post s390 -p /sbin/ldconfig
af3620d
%postun s390 -p /sbin/ldconfig
64690cd
%post kbd -p /sbin/ldconfig
64690cd
%postun kbd -p /sbin/ldconfig
95c9391
95c9391
95c9391
%files
d954869
%{!?_licensedir:%global license %%doc}
d954869
%license LICENSE
95c9391
%{_libdir}/libblockdev.so.*
95c9391
%{_libdir}/girepository*/BlockDev*.typelib
eac5ac0
%config %{_sysconfdir}/libblockdev/conf.d/00-default.cfg
95c9391
95c9391
%files devel
d954869
%doc features.rst specs.rst
95c9391
%{_libdir}/libblockdev.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/blockdev.h
95c9391
%{_includedir}/blockdev/plugins.h
95c9391
%{_libdir}/pkgconfig/blockdev.pc
9a19530
%{_datadir}/gtk-doc/html/libblockdev
9a19530
%{_datadir}/gir*/BlockDev*.gir
95c9391
64690cd
%files -n python2-blockdev
64690cd
%{python2_sitearch}/gi/overrides/*
64690cd
64690cd
%files -n python3-blockdev
64690cd
%{python3_sitearch}/gi/overrides/BlockDev*
64690cd
%{python3_sitearch}/gi/overrides/__pycache__/BlockDev*
95c9391
95c9391
%files utils
95c9391
%{_libdir}/libbd_utils.so.*
95c9391
95c9391
%files utils-devel
95c9391
%{_libdir}/libbd_utils.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/utils.h
95c9391
%{_includedir}/blockdev/sizes.h
95c9391
%{_includedir}/blockdev/exec.h
95c9391
95c9391
95c9391
%files btrfs
95c9391
%{_libdir}/libbd_btrfs.so.*
95c9391
95c9391
%files btrfs-devel
95c9391
%{_libdir}/libbd_btrfs.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/btrfs.h
95c9391
95c9391
95c9391
%files crypto
95c9391
%{_libdir}/libbd_crypto.so.*
95c9391
95c9391
%files crypto-devel
95c9391
%{_libdir}/libbd_crypto.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/crypto.h
95c9391
95c9391
95c9391
%files dm
95c9391
%{_libdir}/libbd_dm.so.*
95c9391
95c9391
%files dm-devel
95c9391
%{_libdir}/libbd_dm.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/dm.h
95c9391
95c9391
af3620d
%files kbd
af3620d
%{_libdir}/libbd_kbd.so.*
af3620d
af3620d
%files kbd-devel
af3620d
%{_libdir}/libbd_kbd.so
af3620d
%dir %{_includedir}/blockdev
af3620d
%{_includedir}/blockdev/kbd.h
af3620d
af3620d
95c9391
%files loop
95c9391
%{_libdir}/libbd_loop.so.*
95c9391
95c9391
%files loop-devel
95c9391
%{_libdir}/libbd_loop.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/loop.h
95c9391
95c9391
95c9391
%files lvm
95c9391
%{_libdir}/libbd_lvm.so.*
95c9391
95c9391
%files lvm-devel
95c9391
%{_libdir}/libbd_lvm.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/lvm.h
95c9391
95c9391
95c9391
%files mdraid
95c9391
%{_libdir}/libbd_mdraid.so.*
95c9391
95c9391
%files mdraid-devel
95c9391
%{_libdir}/libbd_mdraid.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/mdraid.h
95c9391
95c9391
95c9391
%files mpath
95c9391
%{_libdir}/libbd_mpath.so.*
95c9391
95c9391
%files mpath-devel
95c9391
%{_libdir}/libbd_mpath.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/mpath.h
95c9391
95c9391
95c9391
%files swap
95c9391
%{_libdir}/libbd_swap.so.*
95c9391
95c9391
%files swap-devel
95c9391
%{_libdir}/libbd_swap.so
9a19530
%dir %{_includedir}/blockdev
95c9391
%{_includedir}/blockdev/swap.h
95c9391
af3620d
%ifarch s390 s390x
af3620d
%files s390
af3620d
%{_libdir}/libbd_s390.so.*
af3620d
af3620d
%files s390-devel
af3620d
%{_libdir}/libbd_s390.so
af3620d
%dir %{_includedir}/blockdev
af3620d
%{_includedir}/blockdev/s390.h
af3620d
%endif
af3620d
95c9391
%files plugins-all
95c9391
95c9391
%changelog
d86c7e2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-6
d86c7e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d86c7e2
d793d16
* Mon Jan 04 2016 Vratislav Podzimek <vpodzime@redhat.com> - 1.3-5
d793d16
- Round size in thpoolcreate() to KiB (vpodzime)
d793d16
  Resolves: rhbz#1289937
d793d16
40b9ebd
* Wed Nov 25 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.3-4
40b9ebd
- Create the cache pool before the to-be-cached LV (vpodzime)
40b9ebd
Robert Kuska 5271bf0
* Thu Nov 05 2015 Robert Kuska <rkuska@redhat.com> - 1.3-3
Robert Kuska 5271bf0
- Rebuilt for Python3.5 rebuild
Robert Kuska 5271bf0
ed6a23e
* Wed Nov 04 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.3-2
ed6a23e
- Fix the annotation of bd_try_init in blockdev.c (vpodzime)
ed6a23e
64690cd
* Mon Oct 26 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.3-1
64690cd
- Add missing python GI requires (vpodzime)
64690cd
- Merge pull request #49 from dashea/libblockdev-python (vpodzime)
64690cd
- Merge pull request #50 from vpodzime/master-fix_striped_lv (vpodzime)
64690cd
- Merge pull request #46 from vpodzime/master-bcache_destroy (vpodzime)
64690cd
- Merge pull request #39 from vpodzime/master-lvm_physical_space (vpodzime)
64690cd
- Add a missing ldconfig that rpmlint found. (dshea)
64690cd
- Move python files to separate packages (#1256758) (dshea)
64690cd
- Fix lvcreate calls for striped LVs (vpodzime)
64690cd
- Merge pull request #48 from vojtechtrefny/master_pvfree (vpodzime)
64690cd
- Add pv_free to BDLVMPVdata (vtrefny)
64690cd
- Merge pull request #47 from atodorov/add_coverage_report (vpodzime)
64690cd
- Produce coverage report in CI (atodorov)
64690cd
- Check bcache device's state before trying to detach the cache in destroy() (vpodzime)
64690cd
- Fix URLs in the spec (vpodzime)
64690cd
- Fix the int-float less-than comparison (vpodzime)
64690cd
- Fix the calculation of physical space taken by an LV (vpodzime)
64690cd
eac5ac0
* Wed Sep 23 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.2-1
eac5ac0
- Merge pull request #40 from vpodzime/master-config_support (vpodzime)
eac5ac0
- Add tests for configuration support (vpodzime)
eac5ac0
- Add a function for getting the loaded soname for a plugin (vpodzime)
eac5ac0
- Add the default configuration (vpodzime)
eac5ac0
- Load and respect configuration files when loading plugins (vpodzime)
eac5ac0
- Add functions for finding and processing configuration files (vpodzime)
eac5ac0
- Merge pull request #38 from vpodzime/master-md_superblock_size (vpodzime)
eac5ac0
- Better document how MD RAID superblock size should be calculated (vpodzime)
eac5ac0
- Merge pull request #36 from phatina/master (vpodzime)
eac5ac0
- BTRFS: allow an arbitrary label to be set for a btrfs volume (phatina)
eac5ac0
- Merge pull request #32 from phatina/master (vpodzime)
eac5ac0
- BTRFS: fix parsing empty partition label (phatina)
eac5ac0
- Merge pull request #35 from vpodzime/master (vpodzime)
eac5ac0
- Define env variables for sudo via the env utility (vpodzime)
eac5ac0
- Merge pull request #34 from dashea/python3-tests (vpodzime)
eac5ac0
- Use unittest.addCleanup to simplify crypto_test. (dshea)
eac5ac0
- Run tests with both python2 and python3 in the ci target. (dshea)
eac5ac0
- Fix python3 issues in the unittests. (dshea)
eac5ac0
- Do not run all tests in the 'ci' target (vpodzime)
eac5ac0
- Merge pull request #33 from clumens/master (vpodzime)
eac5ac0
- Add a new makefile target that does everything needed for jenkins. (clumens)
eac5ac0
- Synchronize the .spec file with downstream (vpodzime)
eac5ac0
e8024b7
* Fri Jul 24 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.1-2
e8024b7
- Explicitly specify the type of the cert_data parameter (#1246096) (vpodzime)
e8024b7
cd2e4cf
* Fri Jun 19 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.1-1
cd2e4cf
- Clean generated boilerplate code on 'make clean' (vpodzime)
cd2e4cf
- Merge pull request #31 from atodorov/use_lang_c (vpodzime)
cd2e4cf
- tests: use LANG=C in test_backup_passphrase() (atodorov)
cd2e4cf
- Merge pull request #30 from atodorov/makefile_updates (vpodzime)
cd2e4cf
- Makefile.am:   - add separate check target   - add coverage targets   - make it possible to test with Python3 (atodorov)
cd2e4cf
- Merge pull request #29 from atodorov/fix_issue_28 (vpodzime)
cd2e4cf
- Merge pull request #27 from atodorov/fix_docs_url (vpodzime)
cd2e4cf
- Merge pull request #26 from atodorov/test_docs (vpodzime)
cd2e4cf
- Change the modified sources back in tearDown() method as well. Closes #28. (atodorov)
cd2e4cf
- update URL to on-line documentation (atodorov)
cd2e4cf
- add test documentation (atodorov)
cd2e4cf
- Merge pull request #22 from dashea/escrow-tests (vpodzime)
cd2e4cf
- Merge pull request #25 from dashea/python-dep (vpodzime)
cd2e4cf
- Filter the python files from automatic rpm requires (dshea)
cd2e4cf
- Added tests for escrow packets and backup passphrases (dshea)
cd2e4cf
- Free leaked contexts from crypto_init (dshea)
cd2e4cf
- Cooperate with volume_key's memory management (dshea)
cd2e4cf
- Fix inheritance in the LVM tests to prevent multiple runs of some tests (vpodzime)
cd2e4cf
- Make the regexp for testing crypto_generate_backup_passphrase() stricter (vpodzime)
cd2e4cf
- Leave room in the backup passphrase for a trailing 0 (dshea)
cd2e4cf
- Add functions to get names of data/metadata internal LVs (vpodzime)
cd2e4cf
- Allow getting info for an internal LV (vpodzime)
cd2e4cf
- Gather information about all LVs (vpodzime)
cd2e4cf
- Round requested size to KBs in lvresize() (#1221247) (vpodzime)
cd2e4cf
- Add overrides for the ensure_init() function (vpodzime)
cd2e4cf
- Change the default value of the 'reload' parameter of try_reinit() (vpodzime)
cd2e4cf
- Merge pull request #21 from vpodzime/master-thpool_size_discard (vpodzime)
cd2e4cf
- Add overrides for the lvm_is_valid_thpool_chunk_size() function (vpodzime)
cd2e4cf
8041b2f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
8041b2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8041b2f
af3620d
* Thu May 21 2015 Vratislav Podzimek <vpodzime@redhat.com> - 1.0-1
af3620d
- Adapt the release helper targets to autotools (vpodzime)
af3620d
- Fixes of paths in Makefile.am's inspired by build failures on s390 (vpodzime)
af3620d
- Add an s390-specific BuildRequires (vpodzime)
af3620d
- Distribute also the boilerplate_generator.py script (vpodzime)
af3620d
- Fix path to the generated blockdev.pc file (vpodzime)
af3620d
- Adapt tests that compile stuff to autotools (vpodzime)
af3620d
- Merge pull request #18 from vpodzime/master-autotools (vpodzime)
af3620d
- Merge pull request #20 from dashea/gtkdoc-sections (vpodzime)
af3620d
- Use the autotools building system instead of scons (vpodzime)
af3620d
- Add the two new functions to the 'blockdev' docs section (vpodzime)
af3620d
- Fix the line defining the docs file for the s390 section (vpodzime)
af3620d
- Add a missing #include to the kbd.api file (vpodzime)
af3620d
- Prevent s390-specific stuff from being used on other architectures (vpodzime)
af3620d
- Update the documentation of the is_initialized() function (vpodzime)
af3620d
- Merge pull request #19 from vpodzime/master-ensure_init (vpodzime)
af3620d
- Remove private macros from the gtkdoc sections file. (dshea)
af3620d
- Terminate ifdef statements for arch check. (sbueno+anaconda)
af3620d
- Return early from the init functions if setting up logging fails (vpodzime)
af3620d
- Add tests for the new and modified init functions (vpodzime)
af3620d
- Add new try_init() and try_reinit() functions (vpodzime)
af3620d
- Fix for adding number of loaded plugins (vpodzime)
af3620d
- Fix for ensure_init() (vpodzime)
af3620d
- Rename the try_init() function to ensure_init() and improve it (vpodzime)
af3620d
- Check number of loaded plugins and library initialization state (vpodzime)
af3620d
- Make 'reload' default to True instead of False in overrides (vpodzime)
af3620d
- Add the s390 plugin test file. (sbueno+anaconda)
af3620d
- Add the s390 plugin functions. (sbueno+anaconda)
af3620d
- Add the s390 plugin. (sbueno+anaconda)
af3620d
- Fix a typo in the spec file. (sbueno+anaconda)
af3620d
- Require the kmod-devel package for the build process (vpodzime)
af3620d
- Merge pull request #16 from dashea/escrow-encoding (vpodzime)
af3620d
- Merge pull request #13 from vpodzime/master-lvm_cache (vpodzime)
af3620d
- Merge pull request #12 from vpodzime/master-kbd_plugin (vpodzime)
af3620d
- Merge pull request #14 from vpodzime/master-better_is_multipath (vpodzime)
af3620d
- Use g_strdup() instead of g_strdup_printf() to just dup a string (vpodzime)
af3620d
- Fix the spelling of "escrow" (dshea)
af3620d
- Make the crypto plugin string parameters const (dshea)
af3620d
- Set encoding to NULL before writing the escrow packet. (dshea)
af3620d
- Get cache stats directly from the device mapper (vpodzime)
af3620d
- Reimplement the is_mpath_member() function using device mapper (vpodzime)
af3620d
- Add the LVM cache related symbols to the LVM section in the documentation (vpodzime)
af3620d
- Update the list of LVM cache related functions in features.rst (vpodzime)
af3620d
- Add tests for functions related to the LVM cache technology (vpodzime)
af3620d
- Implement the lvm_cache_stats() function (vpodzime)
af3620d
- Implement the lvm_cache_pool_name function (vpodzime)
af3620d
- Implement the lvm_cache_create_cached_lv() function (vpodzime)
af3620d
- Implement lvm_cache_attach/detach() functions (vpodzime)
af3620d
- Implement the lvm_cache_create_pool() function plus two support functions (vpodzime)
af3620d
- Implement the lvm_cache_get_default_md_size() function (vpodzime)
af3620d
- Add the 'type' parameter to the lvm_lvcreate function (vpodzime)
af3620d
- Teach boilerplate_generator to work with enum return types (vpodzime)
af3620d
- Teach boilerplate_generator to work with 'const' return types (vpodzime)
af3620d
- Add subpackages for the KBD plugin and its devel files (vpodzime)
af3620d
- Add provided symbols to the documentation section of the KBD plugin (vpodzime)
af3620d
- Implement the bcache_get_backing/cache_device functions (vpodzime)
af3620d
- Exclude bcache tests from the normal 'test' target (vpodzime)
af3620d
- Add some more and prolong some of the waits in KBD tests (vpodzime)
af3620d
- Zero all newly allocated structures (vpodzime)
af3620d
- Implement the bcache_status function and all it wants (vpodzime)
af3620d
- Fix for the zram stats (vpodzime)
af3620d
- Add bcache_get_mode and bcache_set_mode functions (vpodzime)
af3620d
- Teach boilerplate_generator to work with enum return types (vpodzime)
af3620d
- Teach boilerplate_generator to work with 'const' return types (vpodzime)
af3620d
- Add the zram_get_stats function (vpodzime)
af3620d
- Add the check() function for the KBD plugin (vpodzime)
af3620d
- Add ErrorProxy instance for the KBD plugin (vpodzime)
af3620d
- Add tests for bcache_create/attach/detach/destroy functions (vpodzime)
af3620d
- Add the 'rebuild' Makefile target (vpodzime)
af3620d
- Add bcache_create, bcache_attach, bcache_detach and bcache_destroy functions (vpodzime)
af3620d
- Implement a helper function to echo string into a file (vpodzime)
af3620d
- Add tests for zram_create_devices and zram_destroy_devices functions (vpodzime)
af3620d
- Add the zram_destroy_devices function to the KBD plugin (vpodzime)
af3620d
- Add first function to the KBD plugin: zram_create_devices (vpodzime)
af3620d
- Add the KernelBlockDevices plugin (vpodzime)
af3620d
e690a77
* Wed May 13 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.13-1
e690a77
- Prevent a leaky test from running in Jenkins (vpodzime)
e690a77
- Try harder when cleaning up after MD RAID tests (vpodzime)
e690a77
- Improve the MD RAID activate/deactivate test (vpodzime)
e690a77
- One more @contextmanager that needs try-finally (vpodzime)
e690a77
- Do not require metadata version to be reported by 'mdadm --examine' (#1217900) (vpodzime)
e690a77
- Make sure we always set things back in context managers (vpodzime)
e690a77
- Make the release date for version 1.0 more realistic (vpodzime)
e690a77
- Merge pull request #11 from vpodzime/master (vpodzime)
e690a77
- Run utilities with LC_ALL=C (vpodzime) (#1219033)
e690a77
- Free GMatchInfo instance even in case of no match (vpodzime)
e690a77
- Resolve /dev/md/ symlinks when checking swap status. (dlehman)
e690a77
c7e130d
* Fri Apr 24 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.12-1
c7e130d
- Require minimum version of libblockdev-utils in some plugins (vpodzime)
c7e130d
- Report both stdout and stderr if exit code != 0 (vpodzime)
c7e130d
02a085a
* Fri Apr 17 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.11-1
02a085a
- Fix issues with using overriden functions over ErrorProxy (vpodzime)
02a085a
- Update the roadmap.rst and features.rst with new stuff (vpodzime)
02a085a
- Fix two minor issues with docs generation (vpodzime)
02a085a
69a65f4
* Thu Apr 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.10-1
69a65f4
- Fix return type of the unload_plugins() function (vpodzime)
69a65f4
- Close the DL handle when check() or init() fail (vpodzime)
69a65f4
- Add one more check to the reload test (vpodzime)
69a65f4
- Drop reference to check() and init() functions (vpodzime)
69a65f4
- Add more cats to tests (vpodzime)
69a65f4
- Make regexp for getting btrfs version more generic (vpodzime)
69a65f4
- Merge pull request #8 from vpodzime/master-check_functions (vpodzime)
69a65f4
- Fix parameters passed to unoverridden swapon function (vpodzime)
69a65f4
- Implement and test swap plugin's check function (vpodzime)
69a65f4
- Implement and test MD RAID plugin's check function (vpodzime)
69a65f4
- Implement and test mpath plugin's check function (vpodzime)
69a65f4
- Try harder to get util's version (vpodzime)
69a65f4
- Implement and test loop plugin's check function (vpodzime)
69a65f4
- Implement and test DM plugin's check function (vpodzime)
69a65f4
- Implement and test BTRFS plugin's check function (vpodzime)
69a65f4
- Implement and test LVM plugin's check function (vpodzime)
69a65f4
- Init logging before loading plugins (vpodzime)
69a65f4
- Add function for utility availability checking (vpodzime)
69a65f4
- Fix default value for the fake_utils' path argument (vpodzime)
69a65f4
- Add ErrorProxy instance for the utils functions (vpodzime)
69a65f4
- Add function for version comparison (vpodzime)
69a65f4
- Merge pull request #9 from clumens/master (vpodzime)
69a65f4
- Disable pylint checking on the new exception proxy. (clumens)
69a65f4
- Fix XRules application and add a test for it (vpodzime)
69a65f4
- Raise NotImplementedError when an unavailable function is called (vpodzime)
69a65f4
- Merge pull request #4 from vpodzime/master-error_proxy (vpodzime)
69a65f4
- Merge branch 'master' into master-error_proxy (vpodzime)
69a65f4
- Merge pull request #5 from vpodzime/master-not_implemented_error (vpodzime)
69a65f4
- Add a simple test for unloaded/unavailable functions (vpodzime)
69a65f4
- Unload the plugins properly when reinit() is called (vpodzime)
69a65f4
- Raise error/exception when an unimplemented function is called (#1201475) (vpodzime)
69a65f4
- Do an ugly but necessary hack to make local GI overrides work (vpodzime)
69a65f4
- Add the __dir__ method to ErrorProxy (vpodzime)
69a65f4
- Add a rationale for the ErrorProxy to the overrides' docstring (vpodzime)
69a65f4
- Add some basic info about GI overrides to the documentation (vpodzime)
69a65f4
- Use pylint to check for errors in python overrides (vpodzime)
69a65f4
- Add the first small test for the ErrorProxy (vpodzime)
69a65f4
- Put the GI overrides in a special dir so that they are preferred (vpodzime)
69a65f4
- Add a cache for attributes already resolved by ErrorProxy (vpodzime)
69a65f4
- Implement the ErrorProxy python class and use it (vpodzime)
69a65f4
022ec33
* Tue Apr 07 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.9-1
022ec33
- Merge pull request #7 from vpodzime/master-fw_raid_fixes (vpodzime)
022ec33
- Try a bit harder when trying to determine MD RAID name (#1207317) (vpodzime)
022ec33
- Don't be naïve about mdadm --detail telling us what we want (#1207317) (vpodzime)
022ec33
- Ignore libblockdev tarballs (vpodzime)
022ec33
- Implement a test of btrfs_list_subvolumes on data from bug report (vpodzime)
022ec33
- Implement a context manager for running tests with fake utils (vpodzime)
022ec33
- Do not try to cannonicalize MD UUIDs if we didn't get them (#1207317) (vpodzime)
022ec33
- Fix the table in roadmap.rst (vpodzime)
022ec33
- Enrich the roadmap.rst file and add info about new plans (vpodzime)
022ec33
- Sync spec file with downstream (vpodzime)
022ec33
9a19530
* Fri Mar 27 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.8-1
9a19530
- Merge pull request #6 from vpodzime/master-sort_btrfs_subvolumes (vpodzime)
9a19530
- Don't be naïve about mdadm providing us data we would like (#1206394) (vpodzime)
9a19530
- Sort BTRFS subvolumes in a way that child never appears before parent (#1201120) (vpodzime)
9a19530
- Let libcryptsetup handle LUKSname->/dev/mapper/LUKSname for us (vpodzime)
9a19530
- Fix the crypto_luks_resize and create a test for it (vpodzime)
9a19530
- Add targets to create the SRPM and RPM files easily (vpodzime)
9a19530
- Don't round up to multiple of PE size bigger than max value of the rtype (vpodzime)
9a19530
- Mark majority of MD RAID tests as slow (vpodzime)
9a19530
- Merge pull request #1 from dashea/file-paths (vpodzime)
9a19530
- Don't report error for no loop device associated with given file (vpodzime)
9a19530
- Skip the detail_data.clean check when running tests in Jenkins (vpodzime)
9a19530
- Make package file paths more specific (dshea)
9a19530
- Implement and use MD RAID-specific wait for tests (vpodzime)
9a19530
- Try to give MD RAID time to sync things before querying them (vpodzime)
9a19530
- Fix the default value of the BDMDDetailData.clean field (vpodzime)
9a19530
- Do cleanup after every single MD RAID tests (vpodzime)
9a19530
- Do cleanup after every single LVM test (vpodzime)
9a19530
- Do cleanup after every single BTRFS test (vpodzime)
9a19530
- Make sure the LUKS device is closed and removed after tests (vpodzime)
9a19530
- Make sure DM maps from tests are removed after tests (vpodzime)
9a19530
- Make sure that loop devices are deactivated after tests (vpodzime)
9a19530
- Make the tearDown method of the mpath test case better visible (vpodzime)
9a19530
- Make sure that the swap is deactivated after tests (vpodzime)
9a19530
- Fix docstrings in tests' utils helper functions (vpodzime)
9a19530
- Improve the logging tests in utils_test.py (vpodzime)
9a19530
- Update the features.rst file (vpodzime)
9a19530
- Update the roadmap (vpodzime)
9a19530
- Don't check if we get a mountpoint for BTRFS operations (vpodzime)
9a19530
d954869
* Sun Mar 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.7-2
d954869
- Ship license as per packaging guidelines
d954869
- plugins-all should depend on base library too
d954869
- Add dev docs
d954869
1cd17fa
* Fri Feb 27 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-1
1cd17fa
- Be ready for mdadm --examine to not provide some of the values we want (vpodzime)
1cd17fa
- Add exit code information to exec logging (vpodzime)
1cd17fa
- Improve and add tests (vpodzime)
1cd17fa
- Mark the test_force_plugin and test_reload as slow (vpodzime)
1cd17fa
- Make sure we get some devices when creating btrfs volume (vpodzime)
1cd17fa
- Add override for the lvremove function (vpodzime)
1cd17fa
- Do not create LUKS format with no passphrase and no key file (vpodzime)
1cd17fa
- Make sure we use the /dev/mapper/... path for luks_status (vpodzime)
1cd17fa
9662ba6
* Thu Feb 19 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.6-1
9662ba6
- Don't report error when non-existing swap's status is queried (vpodzime)
9662ba6
- Make libblockdev-plugins-all pull the same version of plugins (vpodzime)
9662ba6
- Don't report error when asked for a backing file of an uknown loop (vpodzime)
9662ba6
- Fix accidental change in the spec's changelog (vpodzime)
9662ba6
f8aac18
* Mon Feb 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.5-1
f8aac18
- Add tests for what we can easily test from the mpath plugin (vpodzime)
f8aac18
- Add link to sources to the documentation (vpodzime)
f8aac18
- Add missing symbols into the libblockdev-sections.txt file (vpodzime)
f8aac18
- Do not build docs for testing (vpodzime)
f8aac18
- Add the bd_try_init function (vpodzime)
f8aac18
- Log stdout and stderr output when running processes (vpodzime)
f8aac18
- Allow a subset of plugins to be load instead of all (vpodzime)
f8aac18
- Make sure devmapper doesn't spam stdout with tons of messages (vpodzime)
f8aac18
- Let debug messages go to stderr when running ipython (vpodzime)
f8aac18
- Give plugins a way to initialize themselves (vpodzime)
f8aac18
- Give plugins a way how to check if they could run properly (vpodzime)
f8aac18
- Allow a subset of plugins to be load instead of all [TEST NEEDED] (vpodzime)
f8aac18
- Make sure we use the whole /dev/mapper path for cryptsetup (vpodzime)
f8aac18
- Fix vg_pv_count parsing when getting info about PV (vpodzime)
f8aac18
- Set default values to data structures if real values are not available (vpodzime)
f8aac18
- Fix the parameter name specifying pool metadata size (vpodzime)
f8aac18
- Activate LUKS as ReadWrite in luks_open (vpodzime)
f8aac18
- Make sure we pass key_size to cryptsetup in bytes (vpodzime)
f8aac18
- Add the min_entropy parameter to luks_format Python overrides (vpodzime)
f8aac18
- Pass size in KiB instead of B to lvcreate (vpodzime)
f8aac18
- Add underscore into dataalignment and metadatasize parameter names (vpodzime)
f8aac18
- Don't report error if non-mpath device is tested for being mpath member (vpodzime)
f8aac18
- Fix name of the invoked utility in mpath_set_friendly_names (vpodzime)
f8aac18
2d19ecb
* Sat Jan 31 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-1
2d19ecb
- Improve the test for lvm_set_global_config (vpodzime)
2d19ecb
- Fix some minor issues in the spec file (vpodzime)
2d19ecb
- Fix issues with the LVM global config str (vpodzime)
2d19ecb
- Add couple more Python overrides (vpodzime)
2d19ecb
- Fix the name of the lvm_thlvpoolname() function in the header file (vpodzime)
2d19ecb
- Use assertEqual instead of assertTrue(a == b) (vpodzime)
2d19ecb
- Add the min_entropy parameter to luks_format (vpodzime)
2d19ecb
- Move internal dmraid-related macros into the source file (vpodzime)
2d19ecb
- Add an override for the md_add function (vpodzime)
2d19ecb
- Fix parameters in luks_open python overrides (vpodzime)
2d19ecb
- Prevent init() from being done multiple times and provide a test function (vpodzime)
2d19ecb
- Add the roadmap.rst document (vpodzime)
2d19ecb
- Remove an extra parenthesis in one of the docstrings (vpodzime)
2d19ecb
- Move the mddetail function next to the mdexamine function (vpodzime)
2d19ecb
- Add some more constants required by blivet (vpodzime)
2d19ecb
c8bdcf2
* Wed Jan 21 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.3-1
c8bdcf2
- Require volume_key-devel in a version that fixes build issues (vpodzime)
c8bdcf2
- Fix Python 2 devel package name in BuildRequires (vpodzime)
c8bdcf2
- Generate docs for the library and all plugins (vpodzime)
c8bdcf2
- Make doc comments better for documentation generation (vpodzime)
c8bdcf2
- Fix parameter names in function prototypes (vpodzime)
c8bdcf2
- Add the metadatasize parameter to pvcreate (vpodzime)
c8bdcf2
- Add the dataalignment parameter to lvm_pvcreate (vpodzime)
c8bdcf2
- Export non-internal constants via introspection (vpodzime)
c8bdcf2
- Expand size constants in the GI-scanned files (vpodzime)
c8bdcf2
- Fix usage printing in the boilerplate_generator (vpodzime)
c8bdcf2
- Add the build directory to .gitignore (vpodzime)
c8bdcf2
- Add the md_run function (vpodzime)
c8bdcf2
- Fix some issues in Python overrides (vpodzime)
c8bdcf2
- Add the escrow_device function to the crypto plugin (vpodzime)
c8bdcf2
- Fix version of GI files in the Makefile (vpodzime)
c8bdcf2
- Make the order of release target's dependencies more explicit (vpodzime)
c8bdcf2
eb93ef9
* Mon Jan 12 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.2-1
eb93ef9
- Fix dependencies of the release target (vpodzime)
eb93ef9
- Python overrides for the GI-generated bindings (vpodzime)
eb93ef9
- Pass version info to the code and use it to load plugins (vpodzime)
eb93ef9
95c9391
* Wed Dec 10 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.1-1
95c9391
- Initial release