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

svn at pcbsd.org svn at pcbsd.org
Tue Aug 19 17:15:08 PDT 2008


Author: kris
Date: 2008-08-19 17:15:04 -0700 (Tue, 19 Aug 2008)
New Revision: 2616

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

Added a warning message to users about ZFS support, and its large hardware
requirements. 



Modified: pcbsd/trunk/PCInstall/pcinstall.cpp
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.cpp	2008-08-19 21:42:24 UTC (rev 2615)
+++ pcbsd/trunk/PCInstall/pcinstall.cpp	2008-08-20 00:15:04 UTC (rev 2616)
@@ -103,12 +103,18 @@
     comboFileSystem->insertItem("UFS2");
     comboFileSystem->insertItem("UFS2 + Soft Updates");
     comboFileSystem->insertItem("UFS2 + Journaling");
-    // Check the currently running language
+
+    // Check if we booted with ZFS enabled or not
     if ( QFile::exists( "/tmp/zfsEnabled" ) )
     {
        comboFileSystem->insertItem("ZFS (Experimental)");
     }
+
+    // Set the default FS to UFS2 + Soft Updates
     comboFileSystem->setCurrentItem(1);
+    
+    // Create our slot to check which FS the user has chosen
+    connect( comboFileSystem,  SIGNAL( currentIndexChanged(const QString &) ), this, SLOT( checkFileSystemSlot(const QString &) ) );  
 
     
     // Load the HD info
@@ -3514,3 +3520,11 @@
   }
 
 }
+
+void PCInstall::checkFileSystemSlot(const QString &text)
+{
+   if ( text.indexOf("ZFS") != -1)
+   {
+    QMessageBox::warning( this, tr("ZFS Warning"), tr("Warning: ZFS usage is primarily for high-end systems with a 64 bit processor and 4+ GB of memory. It may run on lesser hardware, but is not recommended.") );
+   }
+}

Modified: pcbsd/trunk/PCInstall/pcinstall.h
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.h	2008-08-19 21:42:24 UTC (rev 2615)
+++ pcbsd/trunk/PCInstall/pcinstall.h	2008-08-20 00:15:04 UTC (rev 2616)
@@ -44,6 +44,7 @@
 
 
 private slots:
+    void checkFileSystemSlot(const QString &text);
     void nicSavedSlot(QString NIC, QString IP, QString NM, QString Gate);
     void nicFinishedSlot(int exitCode, QProcess::ExitStatus exitStatus);
     void addUserButton();



More information about the Commits mailing list