Hello community,
here is the log from the commit of package yast2-storage
checked in at Thu May 31 21:19:44 CEST 2007.
--------
--- yast2-storage/yast2-storage.changes 2007-05-24 12:22:45.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-storage/yast2-storage.changes 2007-05-31 16:02:36.000000000 +0200
@@ -1,0 +2,18 @@
+Thu May 31 15:53:00 CEST 2007 - fehr@suse.de
+
+- automatically increase GPT before creating partitions (#236404)
+- make help option in controller module work (#269888)
+- version 2.15.14
+
+-------------------------------------------------------------------
+Tue May 29 16:20:34 CEST 2007 - aschnell@suse.de
+
+- fixed crash during detection (caused by empty key-value-pair)
+ (bug #278169)
+
+-------------------------------------------------------------------
+Fri May 25 13:30:04 CEST 2007 - jsrain@suse.cz
+
+- removed outdated translations from .desktop-files (#271209)
+
+-------------------------------------------------------------------
@@ -29 +47 @@
-- adapt to new parted version 1.8.7 ("linux-swap(new)" instead of
+- adapt to new parted version 1.8.7 ("linux-swap(new)" instead of
Old:
----
yast2-storage-2.15.13.tar.bz2
New:
----
yast2-storage-2.15.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-storage.spec ++++++
--- /var/tmp/diff_new_pack.R16870/_old 2007-05-31 21:19:04.000000000 +0200
+++ /var/tmp/diff_new_pack.R16870/_new 2007-05-31 21:19:04.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-storage (Version 2.15.13)
+# spec file for package yast2-storage (Version 2.15.14)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-storage
-Version: 2.15.13
+Version: 2.15.14
Release: 1
License: GNU General Public License (GPL)
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-storage-2.15.13.tar.bz2
+Source0: yast2-storage-2.15.14.tar.bz2
prefix: /usr
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen evms evms-devel gcc-c++ libxcrypt-devel libxslt openssl-devel perl-XML-Writer sablot sgml-skel swig update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-installation yast2-perl-bindings yast2-testsuite
# Required only in inst-sys
@@ -44,7 +44,7 @@
%prep
-%setup -n yast2-storage-2.15.13
+%setup -n yast2-storage-2.15.14
%build
%{prefix}/bin/y2tool y2autoconf
@@ -169,6 +169,15 @@
%doc %{prefix}/share/doc/packages/yast2-storage/config.xml.description
%changelog
+* Thu May 31 2007 - fehr@suse.de
+- automatically increase GPT before creating partitions (#236404)
+- make help option in controller module work (#269888)
+- version 2.15.14
+* Tue May 29 2007 - aschnell@suse.de
+- fixed crash during detection (caused by empty key-value-pair)
+ (bug #278169)
+* Fri May 25 2007 - jsrain@suse.cz
+- removed outdated translations from .desktop-files (#271209)
* Thu May 24 2007 - fehr@suse.de
- add evms-devel to needforbuild
- version 2.15.13
++++++ yast2-storage-2.15.13.tar.bz2 -> yast2-storage-2.15.14.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/controller/src/controller.desktop new/yast2-storage-2.15.14/controller/src/controller.desktop
--- old/yast2-storage-2.15.13/controller/src/controller.desktop 2007-05-23 12:45:15.000000000 +0200
+++ new/yast2-storage-2.15.14/controller/src/controller.desktop 2007-05-29 16:14:30.000000000 +0200
@@ -21,36 +21,4 @@
Name=Disk Controller
GenericName=Configure the disk controller
-Name[cs]=Diskový řadič
-GenericName[cs]=Správa diskového řadiče (načítání modulů a parametry)
-Name[de]=Festplatten-Controller
-GenericName[de]=Umgang mit dem Festplatten-Controller (Laden von Modulen und Parametern)
-Name[es]=Controlador de disco
-GenericName[es]=Manejo del controlador de disco (carga de módulos y parámetros)
-Name[hu]=Lemezvezérlő
-GenericName[hu]=Merevlemez vezérlő kezelése (modulok betöltése és annak paraméterei)
-Name[it]=Controller di disco
-GenericName[it]=Gestione del controller del disco (caricare moduli e parametri)
-Name[ko]=디스크 컨트롤러
-GenericName[ko]=디스크 컨트롤러 제어(모듈 적재와 매개변수 지정)
-Name[nl]=Disk controller
-GenericName[nl]=Disk controller besturing (module laden en parameters)
-Name[pt]=Controladora de Disco
-GenericName[pt]=Gerenciamento de Controladora de Disco (carga de módulo e parâmetros)
-Name[sk]=Radič disku
-GenericName[sk]=Podpora radiča disku (načítanie modulu a jeho parametre)
-Name[sv]=Diskstyrenhet
-GenericName[sv]=Hantering av diskstyrenhet (modulladdning och parametrar)
-Name[el]=Ελεγκτής Δίσκου
-GenericName[el]=Χειρισμός Ελεγκτή Δίσκου (φόρτωση μονάδας και παραμέτρων)
-Name[fr]=Contrôleur disque
-GenericName[fr]=Administration du contrôleur disque (chargement du module et paramètres)
-Name[ja]=ディスク・コントローラ
-GenericName[ja]=ディスク・コントローラの設定 (モジュールのロードとモジュールの引数)
-Name[lt]=Disko valdiklis
-GenericName[lt]=Disko valdiklio valdymas (modulių įkėlimas ir parametrai)
-Name[sl]=Krmilnik diska
-GenericName[sl]=Upravljanje s krmilnikom diska (parametri in nalaganje modulov)
-Name[tr]=Disk denetleyicisi
-GenericName[tr]=Disk denetleyicisi kullanımı (modül yükleme ve parametreleri)
X-KDE-SubstituteUID=true
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/controller/src/controller.ycp new/yast2-storage-2.15.14/controller/src/controller.ycp
--- old/yast2-storage-2.15.13/controller/src/controller.ycp 2007-05-23 12:45:15.000000000 +0200
+++ new/yast2-storage-2.15.14/controller/src/controller.ycp 2007-05-31 16:03:00.000000000 +0200
@@ -11,13 +11,14 @@
* Authors:
* THomas Fehr
*
- * $Id: controller.ycp 27442 2006-01-30 14:53:09Z fehr $
+ * $Id: controller.ycp 38225 2007-05-31 14:02:59Z fehr $
*
*/
{
textdomain "storage";
+import "CommandLine";
import "Wizard";
import "Misc";
/*import "Bootloader";*/
@@ -245,6 +246,8 @@
}
}
+define any Sequence ()
+ {
Wizard::OpenAbortApplyFinishDialog();
list<map> dev = [];
@@ -637,5 +640,19 @@
}
while( ret != `abort && ret!=`cancel && ret != `finish );
UI::CloseDialog();
+ }
+
+/* -- the command line description map -------------------------------------- */
+map cmdline = $[
+ "id" : "controller",
+ // translators: command line help text for controller module
+ "help" : _("Enabling and Disabling of Disk Controller Modules"),
+ // custum help text (should replace default one)
+ "customhelp" : _("Command line interface for the disk controller module is not available"),
+ "guihandler" : Sequence
+ ];
+
+CommandLine::Run (cmdline);
+return true;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/disk/src/disk.desktop new/yast2-storage-2.15.14/disk/src/disk.desktop
--- old/yast2-storage-2.15.13/disk/src/disk.desktop 2007-05-23 12:45:15.000000000 +0200
+++ new/yast2-storage-2.15.14/disk/src/disk.desktop 2007-05-29 16:14:30.000000000 +0200
@@ -21,37 +21,4 @@
Name=Partitioner
GenericName=Partition hard disks (including RAID, LVM, and encrypted file systems)
-Name[cs]=Rozdělování disku
-GenericName[cs]=Rozdělování pevných disků (včetně RAID, LVM, šifrovaných systémů ...)
-Name[de]=Partitionieren
-GenericName[de]=Festplattenpartitionierung (einschließlich RAID, LVM, verschlüsselte Dateisysteme...)
-Name[es]=Particionador
-GenericName[es]=Particionamiento del disco duro (incluyendo RAID, LVM, sistemas de archivos codificados)
-Name[hu]=Particionálás
-GenericName[hu]=Merevlemez particionálás (beleértve RAID-et, LVM-et, titkosított fájlrendszert)
-Name[it]=Partizionatore
-GenericName[it]=Partizionamento dischi rigidi (inclusi RAID, LVM e filesystem cifrati)
-Name[ko]=파티션 도구
-GenericName[ko]=하드디스크 파티션( RAID, LVM, 암호화된 파일 시스템을 포함)
-GenericName[nl]=Harddisk partitionering (inclusief RAID, LVM, versleutelde bestandssystemen)
-Name[pt]=Particionador
-GenericName[pt]=Particionamento de disco rígido (incluindo RAID, LVM, sistema de arquivos criptografado)
-Name[sk]=Rozdelenie disku
-GenericName[sk]=Rozdelenie disku (vrátane RAID, LVM, šifrovaných systémov súborov)
-Name[sv]=Partitionerare
-GenericName[sv]=Hårddiskpartitionering (inklusive RAID, LVM, krypterade filsystem)
-GenericName[da]=Harddisk partitionering (inklusiv RAID, LVM, krypteret filsystem)
-Name[el]=Κατατμητής
-GenericName[el]=Κατάτμηση Σκληρού Δίσκου (περιλαμβάνει RAID, LVM, κρυπτογραφημένα συστήματα αρχείων)
-Name[fr]=Partitionneur
-GenericName[fr]=Partitionnement du disque dur (incluant RAID, LVM, systèmes de fichiers cryptés)
-Name[ja]=ディスクの分割
-GenericName[ja]=ハードディスクの分割 (RAID、LVM、暗号ファイルシステム等)
-Name[lt]=Skaidymo įrankis
-GenericName[lt]=Kietojo disko skaidymas (įskaitant RAID, LVM, koduotas bylų sistemas)
-Name[ru]=Разбиение
-Name[sl]=Particioniranje
-GenericName[sl]=Particioniranje trdih diskov (tudi RAID, LVM, kodirani datotečni sistemi)
-Name[tr]=Disk bölümlendiricisi
-GenericName[tr]=Sabit disk bölümlendirme işlemleri (RAID, LVM ve şifrelenmiş dosya sistemi dahil)
X-KDE-SubstituteUID=true
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/libstorage/src/AppUtil.cc new/yast2-storage-2.15.14/libstorage/src/AppUtil.cc
--- old/yast2-storage-2.15.13/libstorage/src/AppUtil.cc 2007-05-23 12:45:15.000000000 +0200
+++ new/yast2-storage-2.15.14/libstorage/src/AppUtil.cc 2007-05-29 16:19:49.000000000 +0200
@@ -347,7 +347,9 @@
if( (pos=i->find_first_of( delim ))!=string::npos )
{
k = i->substr( 0, pos );
- v = i->substr( i->find_first_not_of( delim, pos+1 ) );
+ string::size_type pos2 = i->find_first_not_of( delim, pos+1 );
+ if( pos2 != string::npos )
+ v = i->substr( pos2 );
}
if( !removeSur.empty() )
{
@@ -360,7 +362,8 @@
if( !v.empty() && (pos=v.find_last_of(removeSur))==v.size()-1 )
v.erase( v.find_last_not_of(removeSur)+1 );
}
- ret[k] = v;
+ if( !k.empty() && !v.empty() )
+ ret[k] = v;
}
return( ret );
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/libstorage/src/Disk.cc new/yast2-storage-2.15.14/libstorage/src/Disk.cc
--- old/yast2-storage-2.15.13/libstorage/src/Disk.cc 2007-05-23 13:07:58.000000000 +0200
+++ new/yast2-storage-2.15.14/libstorage/src/Disk.cc 2007-05-31 15:41:27.000000000 +0200
@@ -21,7 +21,8 @@
#include "y2storage/AppUtil.h"
#include "y2storage/SystemCmd.h"
-#define PARTEDCMD "/usr/sbin/parted -s " // blank at end !!
+#define PARTEDBIN "/usr/sbin/parted"
+#define PARTEDCMD PARTEDBIN " -s " // blank at end !!
using namespace std;
using namespace storage;
@@ -30,7 +31,7 @@
unsigned long long SizeK ) :
Container(s,"",staticType())
{
- init_disk = dmp_slave = iscsi = false;
+ init_disk = dmp_slave = iscsi = gpt_enlarge = false;
nm = Name;
undevDevice(nm);
logfile_name = nm;
@@ -52,7 +53,7 @@
y2milestone( "constructed disk %s nr %u sizeK:%llu", Name.c_str(), num,
SizeK );
logfile_name = Name + decString(num);
- init_disk = dmp_slave = iscsi = false;
+ init_disk = dmp_slave = iscsi = gpt_enlarge = false;
ronly = true;
size_k = SizeK;
head = new_head = 16;
@@ -71,7 +72,7 @@
Disk::Disk( Storage * const s, const string& fname ) :
Container(s,"",staticType())
{
- init_disk = dmp_slave = iscsi = false;
+ init_disk = dmp_slave = iscsi = gpt_enlarge = false;
nm = fname.substr( fname.find_last_of( '/' )+1);
if( nm.find("disk_")==0 )
nm.erase( 0, 5 );
@@ -417,7 +418,8 @@
byte_cyl = head * sector * 512;
y2milestone( "byte_cyl:%lu", byte_cyl );
}
- y2milestone( "Label:%s", dlabel.c_str() );
+ gpt_enlarge = Cmd.select( "fix the GPT to use all" )>0;
+ y2milestone( "Label:%s gpt_enlarge:%d", dlabel.c_str(), gpt_enlarge );
if( dlabel!="loop" )
{
setLabelData( dlabel );
@@ -1857,6 +1859,7 @@
getStorage()->waitForDevice();
redetectGeometry();
}
+ gpt_enlarge = false;
y2milestone( "ret:%d", ret );
return( ret );
}
@@ -2082,9 +2085,24 @@
return( ret );
}
+void Disk::enlargeGpt()
+ {
+ y2mil( "gpt_enlarge:" << gpt_enlarge );
+ if( gpt_enlarge )
+ {
+ string cmd_line( "yes Fix | " PARTEDBIN );
+ cmd_line += " ---pretend-input-tty ";
+ cmd_line += device();
+ cmd_line += " print ";
+ SystemCmd cmd( cmd_line );
+ gpt_enlarge = false;
+ }
+ }
+
static bool logicalCreated( const Partition& p )
{ return( p.type()==LOGICAL && p.created() ); }
+
int Disk::doCreate( Volume* v )
{
Partition * p = dynamic_cast(v);
@@ -2109,6 +2127,10 @@
if( ret==0 )
detected_label = label;
}
+ if( ret==0 && gpt_enlarge )
+ {
+ enlargeGpt();
+ }
std::ostringstream cmd_line;
if( ret==0 )
{
@@ -2576,6 +2598,8 @@
s << " iSCSI";
if( d.dmp_slave )
s << " DmpSlave";
+ if( d.gpt_enlarge )
+ s << " GptEnlarge";
return( s );
}
@@ -2670,7 +2694,7 @@
ext_possible==rhs.ext_possible && max_logical==rhs.max_logical &&
init_disk==rhs.init_disk && label==rhs.label &&
iscsi==rhs.iscsi && sysfs_dir==rhs.sysfs_dir &&
- dmp_slave==rhs.dmp_slave;
+ dmp_slave==rhs.dmp_slave && gpt_enlarge==rhs.gpt_enlarge;
if( ret )
{
ConstPartPair p = partPair();
@@ -2712,6 +2736,7 @@
logfile_name = rhs.logfile_name;
sysfs_dir = rhs.sysfs_dir;
dmp_slave = rhs.dmp_slave;
+ gpt_enlarge = rhs.gpt_enlarge;
return( *this );
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/libstorage/src/Disk.h new/yast2-storage-2.15.14/libstorage/src/Disk.h
--- old/yast2-storage-2.15.13/libstorage/src/Disk.h 2007-05-23 12:45:15.000000000 +0200
+++ new/yast2-storage-2.15.14/libstorage/src/Disk.h 2007-05-31 15:20:31.000000000 +0200
@@ -187,6 +187,7 @@
unsigned long len, bool checkRelaxed );
void removePresentPartitions();
void removeFromMemory();
+ void enlargeGpt();
static bool notDeleted( const Partition&d ) { return( !d.deleted() ); }
static bool bootSpecial( const Partition&d ) { return( !d.deleted()&&(d.id()==0x41||d.id()==0x06) ); }
@@ -225,6 +226,7 @@
bool init_disk;
bool iscsi;
bool dmp_slave;
+ bool gpt_enlarge;
unsigned max_logical;
unsigned long byte_cyl;
unsigned long range;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/lvm/src/lvm_config.desktop new/yast2-storage-2.15.14/lvm/src/lvm_config.desktop
--- old/yast2-storage-2.15.13/lvm/src/lvm_config.desktop 2007-05-23 12:45:16.000000000 +0200
+++ new/yast2-storage-2.15.14/lvm/src/lvm_config.desktop 2007-05-29 16:14:30.000000000 +0200
@@ -21,24 +21,4 @@
Name=LVM
GenericName=Create and configure volume groups and physical and logical volumes
-GenericName[cs]=Vytvořit a nastavit skupiny svazků (fyzické a logické)
-GenericName[de]=Volume-Gruppen sowie Physical Volumes und Logical Volumes erzeugen und konfigurieren.
-GenericName[es]=Crear y configurar grupos de volúmenes y volúmenes físicos y lógicos
-Name[hu]=LVM beállítása
-GenericName[hu]=Kötetcsoportok, fizikai és logikai kötetek létrehozása és beállítása
-GenericName[it]=Crea e configura gruppi di volumi e volumi fisici o logici
-Name[ko]=LVM(논리적 볼륨매니저)
-GenericName[ko]=물리적 혹은 논리적 볼륨을 생성하고 환경설정합니다.
-GenericName[nl]=Maak en configureer volume groepen en fysieke en logische volumes
-GenericName[pt]=Criar e configurar grupos de volume e volumes lógicos e físicos
-GenericName[sk]=Vytvára a nastavuje skupiny diskov a fyzické a logické disky
-GenericName[sv]=Skapa och ställ in volymgrupper samt fysiska och logiska volymer
-GenericName[da]=Opret og konfigurer volume grupper og fysiske og logiske volumer
-GenericName[el]=Δημιουργία και ρύθμιση ομάδας τόμων και φυσικών και λογικών τόμων
-Name[fr]=&Partitionnement
-GenericName[fr]=Créer et configurer des groupes de volumes, des volumes physiques et logiques
-GenericName[ja]=ボリューム・グループ、物理ボリューム、論理ボリュームの作成と設定。
-GenericName[lt]=Sukurti ir konfigūruoti tomų grupes ir fizinius bei loginius tomus
-GenericName[sl]=Ustvari in nastavi skupine nosilcev in fizični in logični nosilci
-GenericName[tr]=Yığın grupları, fiziksel ve mantıksal yığınlar oluşturur ve yapılandırır
X-KDE-SubstituteUID=true
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-storage-2.15.13/VERSION new/yast2-storage-2.15.14/VERSION
--- old/yast2-storage-2.15.13/VERSION 2007-05-23 13:07:58.000000000 +0200
+++ new/yast2-storage-2.15.14/VERSION 2007-05-31 16:02:44.000000000 +0200
@@ -1 +1 @@
-2.15.13
+2.15.14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org