Permalink
Browse files

For sanity sake, don't try to do installs to disks < 4GB

  • Loading branch information...
1 parent fdb09c1 commit 454e8cd36f2bf45ca84806275f483d6bff44ea61 @kmoore134 kmoore134 committed Aug 14, 2013
Showing with 6 additions and 8 deletions.
  1. +6 −8 src-qt4/pc-installgui/wizardDisk.cpp
@@ -246,13 +246,11 @@ bool wizardDisk::validatePage()
}
- // Comment out this disk space check
- // We will warn the user right before install if the selected
- // Disk / partition looks too small
- //if ( ! checkDiskSpace() ) {
- // button(QWizard::NextButton)->setEnabled(false);
- // return false;
- //}
+ // If the select partition is just too small, we can stop here
+ if ( ! checkDiskSpace() ) {
+ button(QWizard::NextButton)->setEnabled(false);
+ return false;
+ }
// if we get this far, all the fields are filled in
button(QWizard::NextButton)->setEnabled(true);
@@ -341,7 +339,7 @@ void wizardDisk::populateZFSDisks()
bool wizardDisk::checkDiskSpace()
{
- if ( getDiskSliceSize() < 10000 )
+ if ( getDiskSliceSize() < 4000 )
return false;
return true;

0 comments on commit 454e8cd

Please sign in to comment.