diff --git a/plugins/dynamix/CacheDevices.page b/plugins/dynamix/CacheDevices.page
index ed71cc600..994149219 100644
--- a/plugins/dynamix/CacheDevices.page
+++ b/plugins/dynamix/CacheDevices.page
@@ -87,7 +87,7 @@ pool_status();
| _(Device)_ | _(Identification)_ | _(Temp)_. | _(Reads)_ | _(Writes)_ | _(Errors)_ | _(FS)_ | _(Size)_ | _(Used)_ | _(Free)_ | _(View)_ |
- | "?>
+ | "?>
diff --git a/plugins/dynamix/include/DeviceList.php b/plugins/dynamix/include/DeviceList.php
index 428111780..0a7ebe43d 100644
--- a/plugins/dynamix/include/DeviceList.php
+++ b/plugins/dynamix/include/DeviceList.php
@@ -309,7 +309,7 @@ function show_totals($text,$array) {
echo " | ";
} else
echo " | ";
- echo "\0";
+ echo "";
}
function array_slots() {
global $var;
@@ -385,8 +385,7 @@ case 'cache':
if ($var['fsState']=='Stopped') {
$log = @(array)parse_ini_file($tmp);
$off = false;
- foreach ($cache as $disk) {
- if (prefix($disk['name'])!=$pool) continue;
+ foreach ($cache as $disk) if (prefix($disk['name'])==$pool) {
array_offline($disk);
if (isset($log[$disk['name']])) $off |= ($log[$disk['name']]!=$disk['id']); else $log[$disk['name']] = $disk['id'];
}
@@ -396,7 +395,7 @@ case 'cache':
} else {
if ($cache[$pool]['devices']) {
foreach ($cache as $disk) if (prefix($disk['name'])==$pool) {
- if (substr($cache[$pool]['fsStatus'],0,11)=='Unmountable') $disk['fsStatus'] = $cache[$pool]['fsStatus'];
+ if (substr($cache[$pool]['fsStatus'],0,11)=='Unmountable' && empty($disk['fsStatus'])) $disk['fsStatus'] = $cache[$pool]['fsStatus'];
array_online($disk);
}
if ($display['total'] && $cache[$pool]['devices']>1) show_totals(sprintf(_('Pool of %s devices'),my_word($cache[$pool]['devices'])),false);