Code

Always add -j if using ext3
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Jan 2008 13:37:33 +0000 (13:37 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Jan 2008 13:37:33 +0000 (13:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8313 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/fai/class_faiPartitionTableEntry.inc

index bb2278ed031ba220563c21113257aa6478026ff4..d72ec5149f0efcbcc0698ad76d2e50802f288307 100644 (file)
@@ -361,8 +361,6 @@ class faiPartitionTableEntry extends plugin
   /* Save data to object */
   function save_object()
   {
-
-
     if((isset($_POST['TableEntryFrameSubmitted'])) && ($this->FAIstate != "freeze") ){
       plugin::save_object();
 
@@ -387,7 +385,14 @@ class faiPartitionTableEntry extends plugin
             $this->partitions[$key]["FAIencrypted"] = false;
           }
         }
+
+        /* Adapt ext3 to have -j option */
+        if ($this->partitions[$key]["FAIfsType"] == "ext3") {
+          $this->partitions[$key]["FAIfsOptions"]= preg_replace('/\s*-j\s*/', '', $this->partitions[$key]["FAIfsOptions"]);
+          $this->partitions[$key]["FAIfsOptions"]= "-j ".$this->partitions[$key]["FAIfsOptions"];
+        }
       }
+
     }
   }