From: cajus Date: Fri, 11 Jan 2008 13:37:33 +0000 (+0000) Subject: Always add -j if using ext3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20abab8006d5036398e13133c36b9487a16dde78;p=gosa.git Always add -j if using ext3 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8313 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/fai/class_faiPartitionTableEntry.inc b/gosa-core/plugins/admin/fai/class_faiPartitionTableEntry.inc index bb2278ed0..d72ec5149 100644 --- a/gosa-core/plugins/admin/fai/class_faiPartitionTableEntry.inc +++ b/gosa-core/plugins/admin/fai/class_faiPartitionTableEntry.inc @@ -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"]; + } } + } }