Hello community,
here is the log from the commit of package yast2-storage
checked in at Thu Oct 16 17:15:30 CEST 2008.
--------
--- yast2-storage/yast2-storage.changes 2008-10-14 17:20:16.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-storage/yast2-storage.changes 2008-10-16 16:11:48.265181000 +0200
@@ -1,0 +2,13 @@
+Thu Oct 16 15:52:01 CEST 2008 - aschnell@suse.de
+
+- fixed creation of lvm logical volumes (bnc #436059)
+- prefer ata-link when more than one udev id is present (#435093)
+- 2.17.40
+
+-------------------------------------------------------------------
+Wed Oct 15 17:37:53 CEST 2008 - aschnell@suse.de
+
+- fixed calculation of unused disk areas (bnc #423660)
+- 2.17.39
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-storage-2.17.38.tar.bz2
New:
----
yast2-storage-2.17.40.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-storage.spec ++++++
--- /var/tmp/diff_new_pack.RK3488/_old 2008-10-16 17:15:14.000000000 +0200
+++ /var/tmp/diff_new_pack.RK3488/_new 2008-10-16 17:15:14.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-storage (Version 2.17.38)
+# spec file for package yast2-storage (Version 2.17.40)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-storage
-Version: 2.17.38
+Version: 2.17.40
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-storage-2.17.38.tar.bz2
+Source0: yast2-storage-2.17.40.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel boost-devel docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt openssl-devel perl-XML-Writer sablot sgml-skel swig update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-perl-bindings yast2-testsuite
Requires: parted yast2-storage-lib = %version yast2-perl-bindings mdadm lvm2 dmraid multipath-tools kpartx cryptsetup
@@ -58,7 +58,7 @@
Arvin Schnell
%prep
-%setup -n yast2-storage-2.17.38
+%setup -n yast2-storage-2.17.40
%build
%{prefix}/bin/y2tool y2autoconf
@@ -182,6 +182,13 @@
%doc %{prefix}/share/doc/packages/yast2-storage/libstorage
%doc %{prefix}/share/doc/packages/yast2-storage/config.xml.description
%changelog
+* Thu Oct 16 2008 aschnell@suse.de
+- fixed creation of lvm logical volumes (bnc #436059)
+- prefer ata-link when more than one udev id is present (#435093)
+- 2.17.40
+* Wed Oct 15 2008 aschnell@suse.de
+- fixed calculation of unused disk areas (bnc #423660)
+- 2.17.39
* Tue Oct 14 2008 aschnell@suse.de
- fixed changing of fsid (part of bnc #431591)
- 2.17.38
++++++ yast2-storage-2.17.38.tar.bz2 -> yast2-storage-2.17.40.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.17.38/configure new/yast2-storage-2.17.40/configure
--- old/yast2-storage-2.17.38/configure 2008-10-14 17:10:54.000000000 +0200
+++ new/yast2-storage-2.17.40/configure 2008-10-16 16:02:46.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-storage 2.17.38.
+# Generated by GNU Autoconf 2.61 for yast2-storage 2.17.40.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-storage'
PACKAGE_TARNAME='yast2-storage'
-PACKAGE_VERSION='2.17.38'
-PACKAGE_STRING='yast2-storage 2.17.38'
+PACKAGE_VERSION='2.17.40'
+PACKAGE_STRING='yast2-storage 2.17.40'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1449,7 +1449,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-storage 2.17.38 to adapt to many kinds of systems.
+\`configure' configures yast2-storage 2.17.40 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1520,7 +1520,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-storage 2.17.38:";;
+ short | recursive ) echo "Configuration of yast2-storage 2.17.40:";;
esac
cat <<\_ACEOF
@@ -1630,7 +1630,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-storage configure 2.17.38
+yast2-storage configure 2.17.40
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1644,7 +1644,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-storage $as_me 2.17.38, which was
+It was created by yast2-storage $as_me 2.17.40, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2465,7 +2465,7 @@
# Define the identity of the package.
PACKAGE='yast2-storage'
- VERSION='2.17.38'
+ VERSION='2.17.40'
cat >>confdefs.h <<_ACEOF
@@ -2693,7 +2693,7 @@
-VERSION="2.17.38"
+VERSION="2.17.40"
RPMNAME="yast2-storage"
MAINTAINER="Arvin Schnell "
@@ -21746,7 +21746,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-storage $as_me 2.17.38, which was
+This file was extended by yast2-storage $as_me 2.17.40, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21799,7 +21799,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-storage config.status 2.17.38
+yast2-storage config.status 2.17.40
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.17.38/configure.in new/yast2-storage-2.17.40/configure.in
--- old/yast2-storage-2.17.38/configure.in 2008-10-14 17:10:39.000000000 +0200
+++ new/yast2-storage-2.17.40/configure.in 2008-10-16 16:02:22.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-storage, 2.17.38, http://bugs.opensuse.org/, yast2-storage)
+AC_INIT(yast2-storage, 2.17.40, http://bugs.opensuse.org/, yast2-storage)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.17.38"
+VERSION="2.17.40"
RPMNAME="yast2-storage"
MAINTAINER="Arvin Schnell "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.17.38/libstorage/src/Disk.cc new/yast2-storage-2.17.40/libstorage/src/Disk.cc
--- old/yast2-storage-2.17.38/libstorage/src/Disk.cc 2008-10-09 18:19:44.000000000 +0200
+++ new/yast2-storage-2.17.40/libstorage/src/Disk.cc 2008-10-16 15:55:32.000000000 +0200
@@ -187,15 +187,11 @@
udev_path = path;
udev_id = id;
- list<string>::iterator i = find_if( udev_id.begin(), udev_id.end(),
- find_begin( "edd-" ) );
- if( i!=udev_id.end() )
- {
- udev_id.erase( i );
- }
+ udev_id.erase(remove_if(udev_id.begin(), udev_id.end(), find_begin("edd-")), udev_id.end());
+
if( udev_id.size()>1 )
{
- i = find_if( udev_id.begin(), udev_id.end(), find_begin( "scsi-" ) );
+ list<string>::iterator i = find_if( udev_id.begin(), udev_id.end(), find_begin( "ata-" ) );
if( i!=udev_id.end() && i!=udev_id.begin() )
{
string tmp = *i;
@@ -1215,42 +1211,66 @@
return( !p.created() && p.type()==PRIMARY );
}
-void Disk::getUnusedSpace( list<Region>& free, bool all, bool logical )
- {
- y2milestone( "all:%d logical:%d", all, logical );
+
+void
+Disk::getUnusedSpace(list<Region>& free, bool all, bool logical)
+{
+ y2mil("all:" << all << " logical:" << logical);
+
free.clear();
- if( all || !logical )
- {
- PartPair p = partPair( notDeletedNotLog );
+
+ if (all || !logical)
+ {
+ PartPair p = partPair(notDeletedNotLog);
+
unsigned long start = 1;
- for( PartIter i=p.begin(); i!=p.end(); ++i )
- {
- if( i->cylStart()>start )
- free.push_back( Region( start, i->cylStart()-start ));
- start = i->cylEnd()+1;
- }
- if( cylinders()>start )
- free.push_back( Region( start, cylinders()-start ));
- }
- if( all || logical )
+ unsigned long end = cylinders();
+
+ list<Region> tmp;
+ for (PartIter i = p.begin(); i != p.end(); ++i)
+ tmp.push_back(i->cylStart(), i->cylEnd() - i->cylStart() + 1);
+ tmp.sort();
+
+ for (list<Region>::const_iterator i = tmp.begin(); i != tmp.end(); ++i)
{
+ if (i->start() > start)
+ free.push_back(Region(start, i->start() - start));
+ start = i->end() + 1;
+ }
+ if (end > start)
+ free.push_back(Region(start, end - start));
+ }
+
+ if (all || logical)
+ {
PartPair ext = partPair(notDeletedExt);
- if( !ext.empty() )
- {
- PartPair p = partPair( notDeletedLog );
+ if (!ext.empty())
+ {
+ PartPair p = partPair(notDeletedLog);
+
unsigned long start = ext.begin()->cylStart();
- for( PartIter i=p.begin(); i!=p.end(); ++i )
- {
- if( i->cylStart()>start )
- free.push_back( Region( start, i->cylStart()-start ));
- start = i->cylEnd()+1;
- }
- if( ext.begin()->cylEnd()>start )
- free.push_back( Region( start, ext.begin()->cylEnd()-start ));
+ unsigned long end = ext.begin()->cylEnd();
+
+ list<Region> tmp;
+ for (PartIter i = p.begin(); i != p.end(); ++i)
+ tmp.push_back(i->cylStart(), i->cylEnd() - i->cylStart() + 1);
+ tmp.sort();
+
+ for (list<Region>::const_iterator i = tmp.begin(); i != tmp.end(); ++i)
+ {
+ if (i->start() > start)
+ free.push_back(Region(start, i->start() - start));
+ start = i->end() + 1;
}
+ if (end > start)
+ free.push_back(Region(start, end - start));
}
}
+ y2deb("free:" << free);
+}
+
+
static bool regions_sort_size( const Region& rhs, const Region& lhs )
{
return( rhs.len()>lhs.len() );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.17.38/storage/src/include/ep-dialogs.ycp new/yast2-storage-2.17.40/storage/src/include/ep-dialogs.ycp
--- old/yast2-storage-2.17.38/storage/src/include/ep-dialogs.ycp 2008-10-14 16:45:03.000000000 +0200
+++ new/yast2-storage-2.17.40/storage/src/include/ep-dialogs.ycp 2008-10-16 15:51:48.000000000 +0200
@@ -289,8 +289,9 @@
if (!data["format"]:false)
data = filter(string key, any value, data, { return key != "fs_options"; });
- if (data["fsid"]:0 != orig_data["fsid"]:0)
- data["change_fsid"] = true;
+ if (contains([`primary, `extended, `logical], data["type"]:`unknown))
+ if (data["fsid"]:0 != orig_data["fsid"]:0)
+ data["change_fsid"] = true;
if (!do_format || !crypt_fs)
widget = `finish;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.17.38/VERSION new/yast2-storage-2.17.40/VERSION
--- old/yast2-storage-2.17.38/VERSION 2008-10-14 16:41:27.000000000 +0200
+++ new/yast2-storage-2.17.40/VERSION 2008-10-16 15:51:40.000000000 +0200
@@ -1 +1 @@
-2.17.38
+2.17.40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org