Hello community, here is the log from the commit of package libstorage-ng for openSUSE:Factory checked in at 2020-07-30 10:00:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old) and /work/SRC/openSUSE:Factory/.libstorage-ng.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage-ng" Thu Jul 30 10:00:33 2020 rev:91 rq:823395 version:4.3.39 Changes: -------- --- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes 2020-07-24 09:54:04.429286501 +0200 +++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.3592/libstorage-ng.changes 2020-07-30 10:01:05.067256467 +0200 @@ -1,0 +2,16 @@ +Wed Jul 29 12:24:18 UTC 2020 - [email protected] + +- merge gh#openSUSE/libstorage-ng#765 +- added functions to query whether a MD RAID supports spare and + journal devices +- 4.3.39 + +-------------------------------------------------------------------- +Wed Jul 29 11:23:45 UTC 2020 - [email protected] + +- merge gh#openSUSE/libstorage-ng#764 +- add _constraints file for OBS requiring at least 4 GB disk size + (bsc#1174375) +- 4.3.38 + +-------------------------------------------------------------------- Old: ---- libstorage-ng-4.3.37.tar.xz New: ---- _constraints libstorage-ng-4.3.39.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstorage-ng.spec ++++++ --- /var/tmp/diff_new_pack.wBylcz/_old 2020-07-30 10:01:10.563259749 +0200 +++ /var/tmp/diff_new_pack.wBylcz/_new 2020-07-30 10:01:10.567259751 +0200 @@ -18,7 +18,7 @@ %define libname %{name}1 Name: libstorage-ng -Version: 4.3.37 +Version: 4.3.39 Release: 0 Summary: Library for storage management License: GPL-2.0-only ++++++ _constraints ++++++ <constraints> <hardware> <disk> <size unit="G">4</size> </disk> </hardware> </constraints> ++++++ libstorage-ng-4.3.37.tar.xz -> libstorage-ng-4.3.39.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/LIBVERSION new/libstorage-ng-4.3.39/LIBVERSION --- old/libstorage-ng-4.3.37/LIBVERSION 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/LIBVERSION 2020-07-29 14:24:18.000000000 +0200 @@ -1 +1 @@ -1.44.1 +1.45.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/README.md new/libstorage-ng-4.3.39/README.md --- old/libstorage-ng-4.3.37/README.md 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/README.md 2020-07-29 14:24:18.000000000 +0200 @@ -83,6 +83,9 @@ Creating the changes file and tar archive are handled by jenkins using [linuxrc-devtools](https://github.com/openSUSE/linuxrc-devtools). +Additional files needed for OBS building are placed in the `obs` +subdirectory. + You can generate a preview of the changes file by running ```sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/VERSION new/libstorage-ng-4.3.39/VERSION --- old/libstorage-ng-4.3.37/VERSION 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/VERSION 2020-07-29 14:24:18.000000000 +0200 @@ -1 +1 @@ -4.3.37 +4.3.39 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/obs/_constraints new/libstorage-ng-4.3.39/obs/_constraints --- old/libstorage-ng-4.3.37/obs/_constraints 1970-01-01 01:00:00.000000000 +0100 +++ new/libstorage-ng-4.3.39/obs/_constraints 2020-07-29 14:24:18.000000000 +0200 @@ -0,0 +1,7 @@ +<constraints> + <hardware> + <disk> + <size unit="G">4</size> + </disk> + </hardware> +</constraints> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/storage/Devices/Md.cc new/libstorage-ng-4.3.39/storage/Devices/Md.cc --- old/libstorage-ng-4.3.37/storage/Devices/Md.cc 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/storage/Devices/Md.cc 2020-07-29 14:24:18.000000000 +0200 @@ -234,6 +234,20 @@ bool + Md::supports_spare_devices() const + { + return get_impl().supports_spare_devices(); + } + + + bool + Md::supports_journal_device() const + { + return get_impl().supports_journal_device(); + } + + + bool Md::is_in_etc_mdadm() const { return get_impl().is_in_etc_mdadm(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/storage/Devices/Md.h new/libstorage-ng-4.3.39/storage/Devices/Md.h --- old/libstorage-ng-4.3.37/storage/Devices/Md.h 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/storage/Devices/Md.h 2020-07-29 14:24:18.000000000 +0200 @@ -195,13 +195,25 @@ void set_metadata(const std::string& metadata); /** - * Return the minimal number of devices required by the RAID. For - * RAIDs of level CONTAINER it returns 0 (those RAIDs cannot be - * created or modified anyway). + * Return the minimal number of devices required by the RAID (without spare and + * journal devices). For RAIDs of level CONTAINER it returns 0 (those RAIDs cannot + * be created or modified anyway). */ unsigned int minimal_number_of_devices() const; /** + * Return whether the RAID supports spare devices. This is the case for RAID1, + * RAID4, RAID5, RAID6 and RAID10. + */ + bool supports_spare_devices() const; + + /** + * Return whether the RAID supports a journal device. This is the case for RAID4, + * RAID5 and RAID6. + */ + bool supports_journal_device() const; + + /** * Query whether the MD RAID is present (probed devicegraph) or will * be present (staging devicegraph) in /etc/mdadm.conf. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/storage/Devices/MdImpl.cc new/libstorage-ng-4.3.39/storage/Devices/MdImpl.cc --- old/libstorage-ng-4.3.37/storage/Devices/MdImpl.cc 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/storage/Devices/MdImpl.cc 2020-07-29 14:24:18.000000000 +0200 @@ -785,6 +785,50 @@ } + bool + Md::Impl::supports_spare_devices() const + { + switch (md_level) + { + case MdLevel::RAID0: + return false; + + case MdLevel::RAID1: + case MdLevel::RAID4: + case MdLevel::RAID5: + case MdLevel::RAID6: + case MdLevel::RAID10: + return true; + + default: + return false; + } + } + + + bool + Md::Impl::supports_journal_device() const + { + switch (md_level) + { + case MdLevel::RAID0: + case MdLevel::RAID1: + return false; + + case MdLevel::RAID4: + case MdLevel::RAID5: + case MdLevel::RAID6: + return true; + + case MdLevel::RAID10: + return false; + + default: + return false; + } + } + + unsigned int Md::Impl::number_of_devices() const { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.3.37/storage/Devices/MdImpl.h new/libstorage-ng-4.3.39/storage/Devices/MdImpl.h --- old/libstorage-ng-4.3.37/storage/Devices/MdImpl.h 2020-07-22 12:49:43.000000000 +0200 +++ new/libstorage-ng-4.3.39/storage/Devices/MdImpl.h 2020-07-29 14:24:18.000000000 +0200 @@ -102,6 +102,8 @@ void set_metadata(const string& metadata) { Impl::metadata = metadata; } unsigned int minimal_number_of_devices() const; + bool supports_spare_devices() const; + bool supports_journal_device() const; unsigned int number_of_devices() const;
