From: psc Date: Fri, 19 Jun 2009 10:22:40 +0000 (+0000) Subject: Applying fix for Trac #2090 from Sebastian Harl X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=545e47fff4dc330df1bdb33cc9c7d0acfcc9815e;p=gosa.git Applying fix for Trac #2090 from Sebastian Harl - Fix wrong mountpoint display and wrong partition type, by setting mountpoint explicit to - (as required for FAI) - Fix undo of preserve Flag by setting FAIpartitionFlags to " " explicit git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13742 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc b/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc index 0efc24c10..f583fec83 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc @@ -272,13 +272,13 @@ class faiPartitionTableEntry extends plugin "changeState('FAIfsOptions_".$key."') ; \""; if($this->acl_is_writeable("FAIpartitionFlags")){ - if($part['FAIpartitionFlags']!=false){ + if($part['FAIpartitionFlags']=="preserve"){ $str .= "\n"; }else{ $str .= "\n"; } }else{ - if($part['FAIpartitionFlags']!=false){ + if($part['FAIpartitionFlags']=="preserve"){ $str .= ""._("False").""; }else{ $str .= ""._("True").""; @@ -346,6 +346,10 @@ class faiPartitionTableEntry extends plugin $this->partitions[$key][$attrs] = false; } } + + if(!$this->partitions[$key]['FAIpartitionFlags']){ + $this->partitions[$key]['FAIpartitionFlags'] = " "; + } } /* Adapt ext3 to have -j option */ @@ -388,6 +392,7 @@ class faiPartitionTableEntry extends plugin /* Skip all checks, if preserve is set */ if($part['FAIpartitionFlags'] == "preserve"){ + $this->partitions[$key]['FAImountPoint'] = "-"; $this->partitions[$key]['FAIfsType'] = "preserve"; $this->partitions[$key]['FAIpartitionSize'] = "preserve"; continue;