aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg/freenas_utils.inc
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 12:11:55 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 12:11:55 +0000
commit3cc4e9b45f49fb0b1ea9e65c6910adb4a5297423 (patch)
tree1c442772dd99ca17ef6dd5b92c2738833d65d42b /packages/freenas/pkg/freenas_utils.inc
parentf183c1cad7971ca5e8a0ca84027d018b34de190a (diff)
downloadpfsense-packages-3cc4e9b45f49fb0b1ea9e65c6910adb4a5297423.tar.gz
pfsense-packages-3cc4e9b45f49fb0b1ea9e65c6910adb4a5297423.tar.bz2
pfsense-packages-3cc4e9b45f49fb0b1ea9e65c6910adb4a5297423.zip
bugfixing
Diffstat (limited to 'packages/freenas/pkg/freenas_utils.inc')
-rw-r--r--packages/freenas/pkg/freenas_utils.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/freenas/pkg/freenas_utils.inc b/packages/freenas/pkg/freenas_utils.inc
index 12c71a12..d3b1379c 100644
--- a/packages/freenas/pkg/freenas_utils.inc
+++ b/packages/freenas/pkg/freenas_utils.inc
@@ -183,7 +183,7 @@ function get_gmirror_disks_list()
// [desc] => COMPLETE
// [size] => 6149M
// )
-
+
/* Display all configured gmirror volume*/
exec("/sbin/gmirror list",$rawdata);
@@ -220,7 +220,7 @@ function get_gmirror_disks_list()
$founddesc=1;
continue ;
}
-
+
// Third Step: Getting the array Size
// look for this output:
// Name: mirror/pouet
@@ -368,7 +368,7 @@ function get_scsi_disks_list()
preg_match("/.*\<([^>]*)>.*/",$line,$match);
$disklist[$diskname]['desc'] = $match[1];
-
+
/* Looking for the disk size */
foreach ($rawdmesg as $dmesgline) {
/* Separe la ligne par les espace */
@@ -627,7 +627,7 @@ function freenas_install($src,$dst)
while(list(,$val) = each($tableau))
{
// Si la ligne contient le mot "unused"
-
+
if (ereg ("unused",$val))
{
// On remplace c: par a:
@@ -672,4 +672,9 @@ function freenas_install($src,$dst)
passthru("/bin/rm -rf /mnt/dst");
}
+
+/* Force kill a process by name */
+function forcekillbyname($procname) {
+ return mwexec("/usr/bin/killall -9 " . escapeshellarg($procname));
+}
?> \ No newline at end of file