[PC-BSD Commits] r5240 - pcbsd/trunk/SysInstaller

svn at pcbsd.org svn at pcbsd.org
Fri Dec 4 13:10:17 PST 2009


Author: kris
Date: 2009-12-04 13:10:17 -0800 (Fri, 04 Dec 2009)
New Revision: 5240

Modified:
   pcbsd/trunk/SysInstaller/dialogFileSystem.cpp
   pcbsd/trunk/SysInstaller/sys-diskwidget.cpp
Log:

Give us a small 5MB size cushion when creating bsdlabel layouts, sometimes being too exact isn't a good thing :P



Modified: pcbsd/trunk/SysInstaller/dialogFileSystem.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/dialogFileSystem.cpp	2009-12-04 20:57:34 UTC (rev 5239)
+++ pcbsd/trunk/SysInstaller/dialogFileSystem.cpp	2009-12-04 21:10:17 UTC (rev 5240)
@@ -352,7 +352,7 @@
     return 0;
 
   // Set the available size to the entire thing, and start decrementing
-  availSize = fullSize;
+  availSize = fullSize - 5;
 
   for (int i=0; i < sysFinalDiskLayout.count(); ++i) {
     // Check if this mount is on the target partition / drive

Modified: pcbsd/trunk/SysInstaller/sys-diskwidget.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/sys-diskwidget.cpp	2009-12-04 20:57:34 UTC (rev 5239)
+++ pcbsd/trunk/SysInstaller/sys-diskwidget.cpp	2009-12-04 21:10:17 UTC (rev 5240)
@@ -244,6 +244,9 @@
   // We got a valid size for this disk / slice, lets generate the layout now
   if(ok)
   {
+     // Give a little size cushion here
+     totalSize = totalSize - 5;
+
      // Figure out the default size for / if we are on FreeBSD / PC-BSD
      if ( radioInstallPCBSD->isChecked() )
         mntsize = 2048;



More information about the Commits mailing list