Hello community,

here is the log from the commit of package libstorage-ng for openSUSE:Factory 
checked in at 2018-03-18 21:43:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old)
 and      /work/SRC/openSUSE:Factory/.libstorage-ng.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libstorage-ng"

Sun Mar 18 21:43:47 2018 rev:15 rq:587911 version:3.3.195

Changes:
--------
--- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes      
2018-03-14 19:34:57.961879635 +0100
+++ /work/SRC/openSUSE:Factory/.libstorage-ng.new/libstorage-ng.changes 
2018-03-18 21:43:50.787871305 +0100
@@ -1,0 +2,30 @@
+Fri Mar 16 13:58:12 UTC 2018 - [email protected]
+
+- merge gh#openSUSE/libstorage-ng#496
+- do not recognize 0x1f as extended partition
+- 3.3.195
+
+--------------------------------------------------------------------
+Fri Mar 16 13:46:47 UTC 2018 - [email protected]
+
+- merge gh#openSUSE/libstorage-ng#495
+- recognize 0x85 as extended partition
+- 3.3.194
+
+--------------------------------------------------------------------
+Fri Mar 16 09:55:33 UTC 2018 - [email protected]
+
+- merge gh#openSUSE/libstorage-ng#494
+- moved enum to storage namespace
+- added integration test
+- use mdadm to delete MD RAID (see bsc#1085470)
+- 3.3.193
+
+--------------------------------------------------------------------
+Thu Mar 15 09:40:38 UTC 2018 - [email protected]
+
+- merge gh#openSUSE/libstorage-ng#493
+- export more functions in API
+- 3.3.192
+
+--------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ libstorage-ng.spec ++++++
--- /var/tmp/diff_new_pack.jTamTE/_old  2018-03-18 21:43:51.759836290 +0100
+++ /var/tmp/diff_new_pack.jTamTE/_new  2018-03-18 21:43:51.763836145 +0100
@@ -18,7 +18,7 @@
 
 %define libname %{name}1
 Name:           libstorage-ng
-Version:        3.3.191
+Version:        3.3.195
 Release:        0
 Summary:        Library for storage management
 License:        GPL-2.0

++++++ libstorage-ng-3.3.191.tar.xz -> libstorage-ng-3.3.195.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-3.3.191/VERSION 
new/libstorage-ng-3.3.195/VERSION
--- old/libstorage-ng-3.3.191/VERSION   2018-03-14 10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/VERSION   2018-03-16 14:58:12.000000000 +0100
@@ -1 +1 @@
-3.3.191
+3.3.195
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-3.3.191/integration-tests/md/create-raid1.py 
new/libstorage-ng-3.3.195/integration-tests/md/create-raid1.py
--- old/libstorage-ng-3.3.191/integration-tests/md/create-raid1.py      
1970-01-01 01:00:00.000000000 +0100
+++ new/libstorage-ng-3.3.195/integration-tests/md/create-raid1.py      
2018-03-16 14:58:12.000000000 +0100
@@ -0,0 +1,35 @@
+#!/usr/bin/python3
+
+# requirements: disk /dev/sdb and /dev/sdc each with one empty and unused 
partitions (sdb1 and sdc1)
+
+
+from sys import exit
+from storage import *
+from storageitu import *
+
+
+set_logger(get_logfile_logger())
+
+environment = Environment(False)
+
+storage = Storage(environment)
+storage.probe()
+
+staging = storage.get_staging()
+
+sdb1 = Partition.find_by_name(staging, "/dev/sdb1")
+sdc1 = Partition.find_by_name(staging, "/dev/sdc1")
+
+md = Md.create(staging, "/dev/md0")
+md.set_md_level(MdLevel_RAID1)
+
+md.add_device(sdb1)
+sdb1.set_id(ID_RAID)
+
+md.add_device(sdc1)
+sdc1.set_id(ID_RAID)
+
+print(staging)
+
+commit(storage)
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-3.3.191/storage/Devices/MdImpl.cc 
new/libstorage-ng-3.3.195/storage/Devices/MdImpl.cc
--- old/libstorage-ng-3.3.191/storage/Devices/MdImpl.cc 2018-03-14 
10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/storage/Devices/MdImpl.cc 2018-03-16 
14:58:12.000000000 +0100
@@ -891,10 +891,12 @@
     void
     Md::Impl::do_delete() const
     {
+       string cmd_line = MDADMBIN " --zero-superblock ";
+
        for (const BlkDevice* blk_device : get_devices())
-       {
-           blk_device->get_impl().wipe_device();
-       }
+           cmd_line += " " + quote(blk_device->get_name());
+
+       SystemCmd cmd(cmd_line, SystemCmd::DoThrow);
     }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-3.3.191/storage/Filesystems/BlkFilesystem.cc 
new/libstorage-ng-3.3.195/storage/Filesystems/BlkFilesystem.cc
--- old/libstorage-ng-3.3.191/storage/Filesystems/BlkFilesystem.cc      
2018-03-14 10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/storage/Filesystems/BlkFilesystem.cc      
2018-03-16 14:58:12.000000000 +0100
@@ -145,6 +145,48 @@
     }
 
 
+    bool
+    BlkFilesystem::supports_shrink() const
+    {
+       return get_impl().supports_shrink();
+    }
+
+
+    bool
+    BlkFilesystem::supports_grow() const
+    {
+       return get_impl().supports_grow();
+    }
+
+
+    bool
+    BlkFilesystem::supports_mounted_shrink() const
+    {
+       return get_impl().supports_mounted_shrink();
+    }
+
+
+    bool
+    BlkFilesystem::supports_mounted_grow() const
+    {
+       return get_impl().supports_mounted_grow();
+    }
+
+
+    bool
+    BlkFilesystem::supports_unmounted_shrink() const
+    {
+       return get_impl().supports_unmounted_shrink();
+    }
+
+
+    bool
+    BlkFilesystem::supports_unmounted_grow() const
+    {
+       return get_impl().supports_unmounted_grow();
+    }
+
+
     void
     BlkFilesystem::set_resize_info(const ResizeInfo& resize_info)
     {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-3.3.191/storage/Filesystems/BlkFilesystem.h 
new/libstorage-ng-3.3.195/storage/Filesystems/BlkFilesystem.h
--- old/libstorage-ng-3.3.191/storage/Filesystems/BlkFilesystem.h       
2018-03-14 10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/storage/Filesystems/BlkFilesystem.h       
2018-03-16 14:58:12.000000000 +0100
@@ -69,6 +69,40 @@
        void set_tune_options(const std::string& tune_options);
 
        /**
+        * Checks whether shrinking the filesystem is supported.
+        */
+       bool supports_shrink() const;
+
+       /**
+        * Checks whether growing the filesystem is supported.
+        */
+       bool supports_grow() const;
+
+       /**
+        * Checks whether shrinking the filesystem while being mounted is
+        * supported.
+        */
+       bool supports_mounted_shrink() const;
+
+       /**
+        * Checks whether growing the filesystem while being mounted is
+        * supported.
+        */
+       bool supports_mounted_grow() const;
+
+       /**
+        * Checks whether shrinking the filesystem while being unmounted is
+        * supported.
+        */
+       bool supports_unmounted_shrink() const;
+
+       /**
+        * Checks whether growing the filesystem while being unmounted is
+        * supported.
+        */
+       bool supports_unmounted_grow() const;
+
+       /**
         * Set the ResizeInfo. Only use for testsuites.
         */
        void set_resize_info(const ResizeInfo& resize_info);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-3.3.191/storage/SystemInfo/CmdParted.cc 
new/libstorage-ng-3.3.195/storage/SystemInfo/CmdParted.cc
--- old/libstorage-ng-3.3.191/storage/SystemInfo/CmdParted.cc   2018-03-14 
10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/storage/SystemInfo/CmdParted.cc   2018-03-16 
14:58:12.000000000 +0100
@@ -249,7 +249,8 @@
 
            if (entry.number > 4)
                entry.type = PartitionType::LOGICAL;
-           else if (contains(vector<unsigned int>({ 0x05, 0x0f, 0x1f }), 
entry.id))
+           // see 
https://github.com/torvalds/linux/blob/master/include/linux/genhd.h#L32
+           else if (contains(vector<unsigned int>({ 0x05, 0x0f, 0x85 }), 
entry.id))
                entry.type = PartitionType::EXTENDED;
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-3.3.191/storage/UsedFeatures.h 
new/libstorage-ng-3.3.195/storage/UsedFeatures.h
--- old/libstorage-ng-3.3.191/storage/UsedFeatures.h    2018-03-14 
10:50:59.000000000 +0100
+++ new/libstorage-ng-3.3.195/storage/UsedFeatures.h    2018-03-16 
14:58:12.000000000 +0100
@@ -27,36 +27,40 @@
 #include <stdint.h>
 
 
-enum : uint64_t
+namespace storage
 {
-    UF_EXT2 = 1 << 0,
-    UF_EXT3 = 1 << 1,
-    UF_EXT4 = 1 << 2,
-    UF_BTRFS = 1 << 3,
-    UF_XFS = 1 << 4,
-    UF_REISERFS = 1 << 5,
-    UF_SWAP = 1 << 6,
-    UF_NTFS = 1 << 7,
-    UF_VFAT = 1 << 8,
-    UF_NFS = 1 << 9,
-    UF_JFS = 1 << 10,
-
-    UF_LUKS = 1 << 11,
-
-    UF_LVM = 1 << 12,
-    UF_MDRAID = 1 << 13,
-    UF_DMRAID = 1 << 14,
-    UF_MULTIPATH = 1 << 15,
-    UF_BCACHE = 1 << 16,
-
-    UF_ISCSI = 1 << 17,
-    UF_FCOE = 1 << 18,
-    UF_FC = 1 << 19,
-    UF_DASD = 1 << 20,
-
-    UF_QUOTA = 1 << 21,
-    UF_SNAPSHOTS = 1 << 22
-};
 
+    enum : uint64_t
+    {
+       UF_EXT2 = 1 << 0,
+       UF_EXT3 = 1 << 1,
+       UF_EXT4 = 1 << 2,
+       UF_BTRFS = 1 << 3,
+       UF_XFS = 1 << 4,
+       UF_REISERFS = 1 << 5,
+       UF_SWAP = 1 << 6,
+       UF_NTFS = 1 << 7,
+       UF_VFAT = 1 << 8,
+       UF_NFS = 1 << 9,
+       UF_JFS = 1 << 10,
+
+       UF_LUKS = 1 << 11,
+
+       UF_LVM = 1 << 12,
+       UF_MDRAID = 1 << 13,
+       UF_DMRAID = 1 << 14,
+       UF_MULTIPATH = 1 << 15,
+       UF_BCACHE = 1 << 16,
+
+       UF_ISCSI = 1 << 17,
+       UF_FCOE = 1 << 18,
+       UF_FC = 1 << 19,
+       UF_DASD = 1 << 20,
+
+       UF_QUOTA = 1 << 21,
+       UF_SNAPSHOTS = 1 << 22
+    };
+
+}
 
 #endif


Reply via email to