From 0186d996c21f1e24d40194fcb48bf12b89d579fd Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Fri, 5 Jan 2007 07:20:22 +0000 Subject: * fix: usorting disks in freenas_guiconfig.inc --- packages/freenas/pkg/freenas_disks.inc | 2 +- packages/freenas/pkg/freenas_guiconfig.inc | 14 +++++----- packages/freenas/www/disks_manage_tools.php | 41 +++++++++-------------------- packages/freenas/www/disks_mount_tools.php | 6 ++--- 4 files changed, 24 insertions(+), 39 deletions(-) (limited to 'packages') diff --git a/packages/freenas/pkg/freenas_disks.inc b/packages/freenas/pkg/freenas_disks.inc index 0a19524e..8ac8eb72 100644 --- a/packages/freenas/pkg/freenas_disks.inc +++ b/packages/freenas/pkg/freenas_disks.inc @@ -81,7 +81,7 @@ function disks_mount($mount) { $mountname=escapeshellcmd($mount['sharename']); @mkdir ("/mnt/$mountname",0777); - + /* mount the filesystems */ $devname=escapeshellcmd($mount['fullname']); diff --git a/packages/freenas/pkg/freenas_guiconfig.inc b/packages/freenas/pkg/freenas_guiconfig.inc index 08dc7e8d..18f936a4 100644 --- a/packages/freenas/pkg/freenas_guiconfig.inc +++ b/packages/freenas/pkg/freenas_guiconfig.inc @@ -67,7 +67,7 @@ function gvinum_sort() { return strcmp($a['name'], $b['name']); } - usort($freenas_config['raid']['vdisk'], "gvinumcmp"); + usort($freenas_config['gvinum']['vdisk'], "gvinumcmp"); } @@ -83,35 +83,35 @@ function gmirror_sort() { } function gconcat_sort() { - global $g, $freenas_cconfig; + global $g, $freenas_config; function gconcatcmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($freenas_cconfig['gconcat']['vdisk'], "gconcatcmp"); + usort($freenas_config['gconcat']['vdisk'], "gconcatcmp"); } function gstripe_sort() { - global $g, $freenas_cconfig; + global $g, $freenas_config; function gstripecmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($freenas_cconfig['gstripe']['vdisk'], "gstripecmp"); + usort($freenas_config['gstripe']['vdisk'], "gstripecmp"); } function graid5_sort() { - global $g, $freenas_cconfig; + global $g, $freenas_config; function graid5cmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($freenas_cconfig['graid5']['vdisk'], "graid5cmp"); + usort($freenas_config['graid5']['vdisk'], "graid5cmp"); } diff --git a/packages/freenas/www/disks_manage_tools.php b/packages/freenas/www/disks_manage_tools.php index a0bb3901..63ecc393 100644 --- a/packages/freenas/www/disks_manage_tools.php +++ b/packages/freenas/www/disks_manage_tools.php @@ -156,53 +156,39 @@ function disk_change() { - - - - + - - - - + - - - /> - - - - -
- -
- + /> + + + + +
+ +
  - - - "> - + ">   - - '); } ?> - diff --git a/packages/freenas/www/disks_mount_tools.php b/packages/freenas/www/disks_mount_tools.php index 6c3710d5..abd31b62 100644 --- a/packages/freenas/www/disks_mount_tools.php +++ b/packages/freenas/www/disks_mount_tools.php @@ -120,7 +120,7 @@ echo $pfSenseHead->getHTML(); -
+
@@ -181,11 +181,11 @@ echo $pfSenseHead->getHTML(); switch($action) { case "mount": - echo(gettext("Mounting...") . "
"); + echo(gettext("Mounting '{$fullname}'...") . "
"); $result = disks_mount_fullname($fullname); break; case "umount": - echo(gettext("Umounting...") . "
"); + echo(gettext("Umounting '{$fullname}'...") . "
"); $result = disks_umount_fullname($fullname); break; } -- cgit v1.2.3