[PC-BSD Commits] r3637 - pcbsd/trunk/PCInstall

svn at pcbsd.org svn at pcbsd.org
Fri Mar 20 06:20:35 PST 2009


Author: kris
Date: 2009-03-20 07:20:28 -0700 (Fri, 20 Mar 2009)
New Revision: 3637

Modified:
   pcbsd/trunk/PCInstall/pcinstall.cpp
Log:

Updated PCInstall to perform a few checks on partition size / and when editing "/" with a custom label



Modified: pcbsd/trunk/PCInstall/pcinstall.cpp
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.cpp	2009-03-19 14:41:30 UTC (rev 3636)
+++ pcbsd/trunk/PCInstall/pcinstall.cpp	2009-03-20 14:20:28 UTC (rev 3637)
@@ -926,9 +926,9 @@
      PartMB = PartitionMB[SelPartition].toLongLong();
      
 
-    if ( PartMB < 4000 )
+    if ( PartMB < 10000 )
    {
-	textPartInfo->setText(tr("Error: PC-BSD needs a partition with at least 4GB of space."));
+	textPartInfo->setText(tr("Error: PC-BSD needs a partition with at least 10GB of space."));
 	setNextEnabled(currentPage(), FALSE);
 	return;
     }
@@ -1951,6 +1951,12 @@
 
 void PCInstall::EditLabelSlot( QString &Blocks )
 {
+    // Check if we are trying to resize / to less than 10GB
+    if ( listViewSlices->currentItem()->text(1) == "/" && Blocks < 10000 )
+    {
+        QMessageBox::information( this, tr("DiskLabel Error:"), tr("The '/' partition must be a minimum of 10GB.") );
+        return;
+    }
     SliceMB[CurrentEditLabel] = Blocks;
     populateSlices();
 }



More information about the Commits mailing list