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 2022-09-13 15:07:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old)
 and      /work/SRC/openSUSE:Factory/.libstorage-ng.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libstorage-ng"

Tue Sep 13 15:07:39 2022 rev:181 rq:1002775 version:4.5.44

Changes:
--------
--- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes      
2022-09-04 22:11:32.624245440 +0200
+++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.2083/libstorage-ng.changes    
2022-09-13 15:07:40.608353356 +0200
@@ -1,0 +2,12 @@
+Fri Sep 9 18:48:20 UTC 2022 - aschn...@suse.com
+
+- Translated using Weblate (Czech) (bsc#1149754)
+- 4.5.44
+
+--------------------------------------------------------------------
+Fri Sep 9 14:26:30 UTC 2022 - aschn...@suse.com
+
+- merge gh#openSUSE/libstorage-ng#897
+- fixed resizing of luks (bsc#1202893)
+
+--------------------------------------------------------------------

Old:
----
  libstorage-ng-4.5.43.tar.xz

New:
----
  libstorage-ng-4.5.44.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libstorage-ng.spec ++++++
--- /var/tmp/diff_new_pack.JZG2L9/_old  2022-09-13 15:07:41.096354730 +0200
+++ /var/tmp/diff_new_pack.JZG2L9/_new  2022-09-13 15:07:41.100354741 +0200
@@ -18,7 +18,7 @@
 
 %define libname %{name}1
 Name:           libstorage-ng
-Version:        4.5.43
+Version:        4.5.44
 Release:        0
 Summary:        Library for storage management
 License:        GPL-2.0-only

++++++ libstorage-ng-4.5.43.tar.xz -> libstorage-ng-4.5.44.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.5.43/VERSION 
new/libstorage-ng-4.5.44/VERSION
--- old/libstorage-ng-4.5.43/VERSION    2022-09-02 17:07:51.000000000 +0200
+++ new/libstorage-ng-4.5.44/VERSION    2022-09-09 23:13:17.000000000 +0200
@@ -1 +1 @@
-4.5.43
+4.5.44
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.5.43/po/cs.po 
new/libstorage-ng-4.5.44/po/cs.po
--- old/libstorage-ng-4.5.43/po/cs.po   2022-09-02 17:07:51.000000000 +0200
+++ new/libstorage-ng-4.5.44/po/cs.po   2022-09-09 23:13:17.000000000 +0200
@@ -13,10 +13,10 @@
 "Project-Id-Version: YaST (@memory@)\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2022-08-05 08:30+0200\n"
-"PO-Revision-Date: 2022-07-28 19:12+0000\n"
+"PO-Revision-Date: 2022-09-09 21:13+0000\n"
 "Last-Translator: Ale?? Kastner <al...@volny.cz>\n"
-"Language-Team: Czech <https://l10n.opensuse.org/projects/libstorage/ng-";
-"master/cs/>\n"
+"Language-Team: Czech <https://l10n.opensuse.org/projects/libstorage/";
+"ng-master/cs/>\n"
 "Language: cs\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -1931,7 +1931,7 @@
 #. TRANSLATORS: error message
 #, c-format
 msgid "Failed to find device %s"
-msgstr ""
+msgstr "Nepoda??ilo se naj??t za????zen?? %s"
 
 #. TRANSLATORS:
 #. %1$s is replaced with the md level (e.g. RAID1),
@@ -2246,47 +2246,47 @@
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (ARM 32-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (ARM 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (ARM 64-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (ARM 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (PPC 32-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (PPC 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (PPC 64-bit BE)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (PPC 64-bit BE)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (PPC 64-bit LE)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (PPC 64-bit LE)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (RISC-V 32-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (RISC-V 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (RISC-V 64-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (RISC-V 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (S/390 32-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (S/390 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (S/390 64-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (S/390 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (x86 32-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (x86 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Root Partition (x86 64-bit)"
-msgstr ""
+msgstr "Ko??enov?? odd??l Linuxu (x86 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux Server Data"
@@ -2298,47 +2298,47 @@
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (ARM 32-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (ARM 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (ARM 64-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (ARM 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (PPC 32-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (PPC 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (PPC 64-bit BE)"
-msgstr ""
+msgstr "USR odd??l Linuxu (PPC 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (PPC 64-bit LE)"
-msgstr ""
+msgstr "USR odd??l Linuxu (PPC 64-bit LE)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (RISC-V 32-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (RISC-V 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (RISC-V 64-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (RISC-V 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (S/390 32-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (S/390 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (S/390 64-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (S/390 64-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (x86 32-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (x86 32-bit)"
 
 #. TRANSLATORS: name of partition type
 msgid "Linux USR Partition (x86 64-bit)"
-msgstr ""
+msgstr "USR odd??l Linuxu (x86 64-bit)"
 
 #. TRANSLATORS: symbol for "mega" (best keep untranslated)
 msgid "M"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.5.43/storage/Devices/LuksImpl.cc 
new/libstorage-ng-4.5.44/storage/Devices/LuksImpl.cc
--- old/libstorage-ng-4.5.43/storage/Devices/LuksImpl.cc        2022-09-02 
17:07:51.000000000 +0200
+++ new/libstorage-ng-4.5.44/storage/Devices/LuksImpl.cc        2022-09-09 
23:13:17.000000000 +0200
@@ -537,9 +537,9 @@
     void
     Luks::Impl::calculate_region_and_topology()
     {
-       // We return early for the same reason that we did in
-       // Md::Impl::calculate_region_and_topology()
-       if (exists_in_system())
+       // During probing the underlying block device might not be known yet. 
Not a
+       // problem since the size is probed anyway.
+       if (!has_parents())
            return;
 
        const BlkDevice* blk_device = get_blk_device();
@@ -554,7 +554,8 @@
        else
            size = 0 * B;
 
-       // If we use integrity, calculate a pesimistic size
+       // If we use integrity, calculate a pessimistic size. This is a problem 
for
+       // potential resizing.
        if (!get_integrity().empty())
            size *= 0.85;
 
@@ -627,6 +628,10 @@
        if (do_resize_needs_password() && get_password().empty())
            return ResizeInfo(false, RB_PASSWORD_REQUIRED);
 
+       // AFAIS not supported by cryptsetup any time soon.
+       if (!get_integrity().empty())
+           return ResizeInfo(false, RB_RESIZE_NOT_SUPPORTED_BY_DEVICE);
+
        ResizeInfo resize_info = 
BlkDevice::Impl::detect_resize_info(get_non_impl());
 
        resize_info.shift(metadata_size());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.5.43/testsuite/Makefile.am 
new/libstorage-ng-4.5.44/testsuite/Makefile.am
--- old/libstorage-ng-4.5.43/testsuite/Makefile.am      2022-09-02 
17:07:51.000000000 +0200
+++ new/libstorage-ng-4.5.44/testsuite/Makefile.am      2022-09-09 
23:13:17.000000000 +0200
@@ -19,7 +19,8 @@
        md1.test md2.test md3.test md4.test md5.test encryption1.test           
\
        encryption2.test lvm1.test lvm-pv-usable-size.test graphviz.test        
\
        copy-individual.test mountpoint.test bcache1.test graph.test            
\
-       restore.test set-source.test valid-names.test mount-by2.test
+       restore.test set-source.test valid-names.test mount-by2.test            
\
+       resize1.test
 
 AM_DEFAULT_SOURCE_EXT = .cc
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.5.43/testsuite/resize1.cc 
new/libstorage-ng-4.5.44/testsuite/resize1.cc
--- old/libstorage-ng-4.5.43/testsuite/resize1.cc       1970-01-01 
01:00:00.000000000 +0100
+++ new/libstorage-ng-4.5.44/testsuite/resize1.cc       2022-09-09 
23:13:17.000000000 +0200
@@ -0,0 +1,59 @@
+
+#define BOOST_TEST_DYN_LINK
+#define BOOST_TEST_MODULE libstorage
+
+#include <boost/algorithm/string.hpp>
+#include <boost/test/unit_test.hpp>
+
+#include "storage/Devices/Disk.h"
+#include "storage/Devices/Gpt.h"
+#include "storage/Devices/Partition.h"
+#include "storage/Devices/Luks.h"
+#include "storage/Filesystems/Ext4.h"
+#include "storage/Devicegraph.h"
+#include "storage/StorageImpl.h"
+#include "storage/Environment.h"
+#include "storage/Utils/Region.h"
+#include "storage/Utils/HumanString.h"
+
+
+using namespace std;
+using namespace storage;
+
+
+const unsigned long long mpg = MiB / 512;      // sectors per MiB
+const unsigned long long spg = GiB / 512;      // sectors per GiB
+
+
+BOOST_AUTO_TEST_CASE(test_luks)
+{
+    set_logger(get_stdout_logger());
+
+    Environment environment(true, ProbeMode::NONE, TargetMode::DIRECT);
+
+    Storage storage(environment);
+
+    Devicegraph* staging = storage.get_staging();
+
+    Disk* sda = Disk::create(staging, "/dev/sda", Region(0, 200 * spg, 512));
+    PartitionTable* gpt = sda->create_partition_table(PtType::GPT);
+    Partition* sda1 = gpt->create_partition("/dev/sda1", Region(1 * mpg, 10 * 
spg, 512), PartitionType::PRIMARY);
+    Luks* luks = to_luks(sda1->create_encryption("cr-test", 
EncryptionType::LUKS1));
+    luks->create_blk_filesystem(FsType::EXT4);
+
+    storage.remove_devicegraph("system");
+    storage.copy_devicegraph("staging", "system");
+
+    BOOST_CHECK_EQUAL(sda1->get_size_string(), "10.00 GiB");
+    BOOST_CHECK_EQUAL(luks->get_size_string(), "10.00 GiB");
+
+    sda1->set_size(30 * GiB);
+
+    BOOST_CHECK_EQUAL(sda1->get_size_string(), "30.00 GiB");
+    BOOST_CHECK_EQUAL(luks->get_size_string(), "30.00 GiB");
+
+    sda1->set_size(20 * GiB);
+
+    BOOST_CHECK_EQUAL(sda1->get_size_string(), "20.00 GiB");
+    BOOST_CHECK_EQUAL(luks->get_size_string(), "20.00 GiB");
+}

Reply via email to