aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2007-01-11 11:03:31 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2007-01-11 11:03:31 +0000
commit40b0848cf0bc85ee5c85a75b1ae3a75494e8d09d (patch)
tree4a5059d75748ddbd7c5cff28e98b2a7e1d5cabc0 /packages/freenas/pkg
parent4c220daee80a863e20460950a2a49d29d5bc3075 (diff)
downloadpfsense-packages-40b0848cf0bc85ee5c85a75b1ae3a75494e8d09d.tar.gz
pfsense-packages-40b0848cf0bc85ee5c85a75b1ae3a75494e8d09d.tar.bz2
pfsense-packages-40b0848cf0bc85ee5c85a75b1ae3a75494e8d09d.zip
* sync to latest FreeNAS trunk
Diffstat (limited to 'packages/freenas/pkg')
-rw-r--r--packages/freenas/pkg/freenas_disks.inc10
-rw-r--r--packages/freenas/pkg/freenas_guiconfig.inc8
-rw-r--r--packages/freenas/pkg/freenas_utils.inc6
3 files changed, 19 insertions, 5 deletions
diff --git a/packages/freenas/pkg/freenas_disks.inc b/packages/freenas/pkg/freenas_disks.inc
index 3ccc4f24..16f5a12f 100644
--- a/packages/freenas/pkg/freenas_disks.inc
+++ b/packages/freenas/pkg/freenas_disks.inc
@@ -1034,6 +1034,9 @@ function disks_raid_graid5_delete($raidname) {
// Stop the volume
mwexec("/sbin/graid5 stop $raidname");
+
+ // The volume can disapear a few second after stop
+ sleep(2);
// Clear the graid5 information on the hard drive
foreach ($freenas_config['graid5']['vdisk'] as $a_raid) {
@@ -1155,6 +1158,7 @@ function disks_bsdlabel($harddrive,$partition,$type) {
// If the line contain the word "unused"
if (ereg ("unused",$val)) {
// Replacing c: by a:
+ // Why ??? Must found the web page where I see this method
$val = ereg_replace ("c:","a:", $val);
// Peplacing unused by $type
$val = ereg_replace ("unused",$type, $val);
@@ -1198,8 +1202,6 @@ function disks_set_ataidle() {
$apm=$disk['apm'];
$ac=$disk['acoustic'];
- /* mwexec("/usr/local/sbin/ataidle -A $ac -P $apm -S $time $channel $device"); */
-
$cmd = "/usr/local/sbin/ataidle ";
if ($disk['acoustic'] != 0) { $cmd .= "-A $ac "; }
@@ -1227,9 +1229,11 @@ Result is in the form:
[type] => 0xa5
[flags] => 0x80
)
+
+Called in disks_manage_tools.php
*/
function disks_get_partition_info($disk) {
- exec("/sbin/fdisk -s /dev/{$disk}", $rawdata);
+ exec("/sbin/fdisk -s {$disk}", $rawdata);
array_shift($rawdata);
array_shift($rawdata);
diff --git a/packages/freenas/pkg/freenas_guiconfig.inc b/packages/freenas/pkg/freenas_guiconfig.inc
index 93e7a826..1464b147 100644
--- a/packages/freenas/pkg/freenas_guiconfig.inc
+++ b/packages/freenas/pkg/freenas_guiconfig.inc
@@ -50,7 +50,13 @@ define("DONE_PARAGRAPH", "
define("CMDOUT_PARA", "
<p style='font-size: small;'>
- <strong>Command output:</strong> (use the toggle icon to unveil detailed infos):
+ <strong>Command output</strong> (use the toggle icon to unveil detailed infos):
+ </p>
+ ");
+
+define("CMDOUT_PARA_WOHINT", "
+ <p style='font-size: small;'>
+ <strong>Command output:</strong>
</p>
");
diff --git a/packages/freenas/pkg/freenas_utils.inc b/packages/freenas/pkg/freenas_utils.inc
index a18a9795..1e812412 100644
--- a/packages/freenas/pkg/freenas_utils.inc
+++ b/packages/freenas/pkg/freenas_utils.inc
@@ -579,7 +579,11 @@ function get_ata_disks_list() {
/* Separe la ligne par les espace */
$dmesgtab = explode(" ", $dmesgline);
$dmesgtab[0] = rtrim($dmesgtab[0],":");
- if ($dmesgtab[0]!="" &&(strcasecmp($dmesgtab[0],$diskname) == 0))
+ /* When there is a wrong DMA cable, the first line is:
+ * ad0: DMA limited to UDMA33, controller found non-ATA66 cable
+ */
+ if ($dmesgtab[0]!="" && (strcasecmp($dmesgtab[0],$diskname) == 0) &&
+ strcmp($dmesgtab[1],"DMA") !=0) {
$disklist[$diskname]['size'] = $dmesgtab[1];
} // end if
} // end foreach