aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg/freenas_disks.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freenas/pkg/freenas_disks.inc')
-rw-r--r--packages/freenas/pkg/freenas_disks.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/freenas/pkg/freenas_disks.inc b/packages/freenas/pkg/freenas_disks.inc
index 8ac8eb72..3ccc4f24 100644
--- a/packages/freenas/pkg/freenas_disks.inc
+++ b/packages/freenas/pkg/freenas_disks.inc
@@ -42,6 +42,7 @@
/* include all configuration functions */
require_once("functions.inc");
+require_once("freenas_functions.inc");
$freenas_config =& $config['installedpackages']['freenas']['config'][0];
@@ -295,7 +296,7 @@ function disks_check_mount_fullname($fullname) {
//print_r($detmount);
foreach ($detmount as $detmountk => $detmountv) {
- if (strcmp($detmountv['fullname'],$fullname) == 0) {
+ if (strpos($detmountv['fullname'],$fullname) !== false) {
$status=1;
break;
}