commit libstorage for openSUSE:Factory
Hello community,
here is the log from the commit of package libstorage for openSUSE:Factory checked in at 2014-09-28 19:56:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libstorage (Old)
and /work/SRC/openSUSE:Factory/.libstorage.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage"
Changes:
--------
--- /work/SRC/openSUSE:Factory/libstorage/libstorage.changes 2014-09-24 13:09:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libstorage.new/libstorage.changes 2014-09-28 19:56:49.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Sep 25 16:20:52 CEST 2014 - aschnell@suse.de
+
+- sort partitions after certain remove steps (bsc#898362)
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libstorage-2.25.15.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-2.25.15/storage/BtrfsCo.cc new/libstorage-2.25.15/storage/BtrfsCo.cc
--- old/libstorage-2.25.15/storage/BtrfsCo.cc 2014-07-21 15:21:12.000000000 +0200
+++ new/libstorage-2.25.15/storage/BtrfsCo.cc 2014-09-25 16:39:17.000000000 +0200
@@ -418,7 +418,7 @@
int BtrfsCo::removeVolume( Volume* v, bool quiet )
{
int ret = 0;
- y2mil("qiet:" << quiet);
+ y2mil("quiet:" << quiet);
y2mil("vol:" << *v);
v->setDeleted();
if( quiet )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-2.25.15/storage/Disk.cc new/libstorage-2.25.15/storage/Disk.cc
--- old/libstorage-2.25.15/storage/Disk.cc 2014-09-22 16:59:15.000000000 +0200
+++ new/libstorage-2.25.15/storage/Disk.cc 2014-09-25 16:39:17.000000000 +0200
@@ -1387,11 +1387,21 @@
return( ret );
}
-static bool volume_ptr_sort_nr( Partition*& rhs, Partition*& lhs )
+
+ static bool
+ partition_ptr_sort_nr(Partition*& rhs, Partition*& lhs)
+ {
+ return rhs->nr() < lhs->nr();
+ }
+
+
+ static bool
+ volume_ptr_sort_nr(const Volume* rhs, const Volume* lhs)
{
- return( rhs->nr()<lhs->nr() );
+ return rhs->nr() < lhs->nr();
}
+
int Disk::removePartition( unsigned nr )
{
y2mil("begin nr " << nr);
@@ -1444,7 +1454,7 @@
}
if( !l.empty() )
{
- l.sort( volume_ptr_sort_nr );
+ l.sort(partition_ptr_sort_nr);
unsigned old = nr;
list
participants (1)
-
root@hilbert.suse.de