Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libstorage-ng for openSUSE:Factory checked in at 2024-01-10 21:50:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old) and /work/SRC/openSUSE:Factory/.libstorage-ng.new.21961 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage-ng" Wed Jan 10 21:50:55 2024 rev:253 rq:1137710 version:4.5.171 Changes: -------- --- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes 2024-01-05 21:40:56.409242012 +0100 +++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.21961/libstorage-ng.changes 2024-01-10 21:51:04.217512552 +0100 @@ -1,0 +2,7 @@ +Tue Jan 9 11:22:39 UTC 2024 - aschn...@suse.com + +- merge gh#openSUSE/libstorage-ng#977 +- provide light_probe function with SystemInfo parameter +- 4.5.171 + +-------------------------------------------------------------------- Old: ---- libstorage-ng-4.5.170.tar.xz New: ---- libstorage-ng-4.5.171.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstorage-ng.spec ++++++ --- /var/tmp/diff_new_pack.1fu4r6/_old 2024-01-10 21:51:04.897537245 +0100 +++ /var/tmp/diff_new_pack.1fu4r6/_new 2024-01-10 21:51:04.901537391 +0100 @@ -18,7 +18,7 @@ %define libname %{name}1 Name: libstorage-ng -Version: 4.5.170 +Version: 4.5.171 Release: 0 Summary: Library for storage management License: GPL-2.0-only ++++++ libstorage-ng-4.5.170.tar.xz -> libstorage-ng-4.5.171.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/LIBVERSION new/libstorage-ng-4.5.171/LIBVERSION --- old/libstorage-ng-4.5.170/LIBVERSION 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/LIBVERSION 2024-01-09 12:22:39.000000000 +0100 @@ -1 +1 @@ -1.96.0 +1.97.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/VERSION new/libstorage-ng-4.5.171/VERSION --- old/libstorage-ng-4.5.170/VERSION 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/VERSION 2024-01-09 12:22:39.000000000 +0100 @@ -1 +1 @@ -4.5.170 +4.5.171 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/bindings/storage-catches.i new/libstorage-ng-4.5.171/bindings/storage-catches.i --- old/libstorage-ng-4.5.170/bindings/storage-catches.i 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/bindings/storage-catches.i 2024-01-09 12:22:39.000000000 +0100 @@ -103,6 +103,7 @@ %catches(storage::NullPointerException) storage::is_vfat(const Device *device); %catches(storage::NullPointerException) storage::is_xfs(const Device *device); %catches(storage::Exception) storage::light_probe(); +%catches(storage::Exception) storage::light_probe(SystemInfo &system_info); %catches(storage::Exception) storage::read_simple_etc_crypttab(const std::string &filename); %catches(storage::Exception) storage::read_simple_etc_fstab(const std::string &filename); %catches(storage::DeviceHasWrongType, storage::NullPointerException) storage::to_bcache(Device *device); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/storage/SystemInfo/SystemInfo.h new/libstorage-ng-4.5.171/storage/SystemInfo/SystemInfo.h --- old/libstorage-ng-4.5.170/storage/SystemInfo/SystemInfo.h 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/storage/SystemInfo/SystemInfo.h 2024-01-09 12:22:39.000000000 +0100 @@ -34,10 +34,13 @@ /** * The SystemInfo class keeps various system information. * - * So far the class can only be used for the Storage::probe() and + * So far the class can only be used for the Storage::probe(), lighe_probe() and * BlkDevice::find_by_any_name() functions. There it can avoid querying the same * information from the system several times when using several calls to * BlkDevice::find_by_any_name(). + * + * After modifying the storage system the SystemInfo object is invalid and must not be + * used anymore. */ class SystemInfo : private boost::noncopyable { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/storage/Utils/LightProbe.cc new/libstorage-ng-4.5.171/storage/Utils/LightProbe.cc --- old/libstorage-ng-4.5.170/storage/Utils/LightProbe.cc 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/storage/Utils/LightProbe.cc 2024-01-09 12:22:39.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 SUSE LLC + * Copyright (c) [2018-2024] SUSE LLC * * All Rights Reserved. * @@ -21,7 +21,8 @@ #include "storage/Utils/LightProbe.h" -#include "storage/SystemInfo/SystemInfoImpl.h" +#include "storage/Utils/LoggerImpl.h" +#include "storage/SystemInfo/SystemInfo.h" #include "storage/Prober.h" @@ -31,11 +32,18 @@ bool light_probe() { - y2mil("light-probe begin"); + SystemInfo system_info; + + return light_probe(system_info); + } + - SystemInfo::Impl system_info; + bool + light_probe(SystemInfo& system_info) + { + y2mil("light-probe begin"); - SysBlockEntries sys_block_entries = probe_sys_block_entries(system_info); + SysBlockEntries sys_block_entries = probe_sys_block_entries(system_info.get_impl()); y2mil("light-probe end"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.170/storage/Utils/LightProbe.h new/libstorage-ng-4.5.171/storage/Utils/LightProbe.h --- old/libstorage-ng-4.5.170/storage/Utils/LightProbe.h 2024-01-04 17:29:11.000000000 +0100 +++ new/libstorage-ng-4.5.171/storage/Utils/LightProbe.h 2024-01-09 12:22:39.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 SUSE LLC + * Copyright (c) [2018-2024] SUSE LLC * * All Rights Reserved. * @@ -27,6 +27,9 @@ namespace storage { + class SystemInfo; + + /** * This function does some very light probing and returns true iff some * disks or DASDs were found in the system. No devicegraph is generated. @@ -36,6 +39,16 @@ */ bool light_probe(); + + /** + * Same as light_probe() except for the SystemInfo parameter. + * + * @see light_probe() + * + * @throw Exception + */ + bool light_probe(SystemInfo& system_info); + }