Mailinglist Archive: yast-commit (410 mails)

< Previous Next >
[yast-commit] r64892 - in /branches/SuSE-Code-11-SP2-Branch/storage: libstorage/src/Disk.cc package/yast2-storage.changes
Author: aschnell
Date: Tue Jul 19 17:23:49 2011
New Revision: 64892

URL: http://svn.opensuse.org/viewcvs/yast?rev=64892&view=rev
Log:
- fixed size calculation for very small partitions (bnc#705566)

Modified:
branches/SuSE-Code-11-SP2-Branch/storage/libstorage/src/Disk.cc
branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes

Modified: branches/SuSE-Code-11-SP2-Branch/storage/libstorage/src/Disk.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/libstorage/src/Disk.cc?rev=64892&r1=64891&r2=64892&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/storage/libstorage/src/Disk.cc (original)
+++ branches/SuSE-Code-11-SP2-Branch/storage/libstorage/src/Disk.cc Tue Jul 19
17:23:49 2011
@@ -1836,6 +1836,13 @@
{ return( p.type()==LOGICAL && p.created() ); }


+inline unsigned long
+sub_sat(unsigned long a, unsigned long b)
+{
+ return a - min(a, b);
+}
+
+
int Disk::doCreate( Volume* v )
{
Partition * p = dynamic_cast<Partition *>(v);
@@ -1927,7 +1934,7 @@
{
y2mil( "i " << *i );
if( i->cylStart()<maxc && i->cylStart()<end &&
- i->cylEnd()-fuzz_cyl>p->cylStart() )
+ sub_sat(i->cylEnd(), fuzz_cyl) > p->cylStart() )
{
maxc=i->cylStart();
y2mil( "new maxc " << maxc );

Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes?rev=64892&r1=64891&r2=64892&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes
(original)
+++ branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes Tue
Jul 19 17:23:49 2011
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Jul 19 17:17:10 CEST 2011 - aschnell@xxxxxxx
+
+- fixed size calculation for very small partitions (bnc#705566)
+
+-------------------------------------------------------------------
Tue Jul 19 14:18:48 CEST 2011 - fehr@xxxxxxx

- fix failing testsuite if program without setup_system is first

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages