diff --git a/plugins/dynamix/CacheDevices.page b/plugins/dynamix/CacheDevices.page index 945b4329b..21be77752 100644 --- a/plugins/dynamix/CacheDevices.page +++ b/plugins/dynamix/CacheDevices.page @@ -4,8 +4,8 @@ Tag="bullseye" Cond="($var['fsState']=='Stopped' || $var['cacheSbNumDisks'])" --- **Colored Status Indicator** the significance of the color indicator at the beginning of each line in *Cache Devices* is as follows: > -> Normal operation, device is active. +> Normal operation, device is active. > -> Device is in standby mode (spun-down). +> Device is in standby mode (spun-down). > -> New device. +> New device. > -> No device present, position is empty. +> No device present, position is empty. > > **Cache** is a device, or device pool, *outside* the Unraid array. It may be exported for network access just > like an Array device. Being outside the Unraid array results in significantly faster write access. diff --git a/plugins/dynamix/DiskList.page b/plugins/dynamix/DiskList.page index 1b48c464f..b564c690a 100644 --- a/plugins/dynamix/DiskList.page +++ b/plugins/dynamix/DiskList.page @@ -33,7 +33,7 @@ $(function() { }); - +
NameCommentSMBNFSAFPSizeFreeView
@@ -41,9 +41,9 @@ $(function() { > **Colored Status Indicator** -- the significance of the color indicator at the beginning of each line in *Disk Shares* is as follows: > -> Mounted, underlying device has redundancy/protection. +> Mounted, underlying device has redundancy/protection. > -> Mounted, underlying device does not have redundancy/protection. +> Mounted, underlying device does not have redundancy/protection. > > **Security modes:** diff --git a/plugins/dynamix/ShareList.page b/plugins/dynamix/ShareList.page index 7f3589f8a..0a65805b7 100644 --- a/plugins/dynamix/ShareList.page +++ b/plugins/dynamix/ShareList.page @@ -33,7 +33,7 @@ $(function() { }); - +
NameCommentSMBNFSAFPSizeFreeView
@@ -48,9 +48,9 @@ $(function() { > **Colored Status Indicator** -- the significance of the color indicator at the beginning of each line in *User Shares* is as follows: > -> All files are on protected storage. +> All files are on protected storage. > -> Some or all files are on unprotected storage. +> Some or all files are on unprotected storage. > > **Security modes:** diff --git a/plugins/dynamix/include/DeviceList.php b/plugins/dynamix/include/DeviceList.php index b2bb339af..606cbedf2 100644 --- a/plugins/dynamix/include/DeviceList.php +++ b/plugins/dynamix/include/DeviceList.php @@ -52,17 +52,17 @@ function device_info(&$disk,$online) { } else $ctrl = ''; switch ($disk['color']) { - case 'green-on': $help = 'Normal operation, device is active'; break; - case 'green-blink': $help = 'Device is in standby mode (spun-down)'; break; - case 'blue-on': $help = 'New device'; break; - case 'blue-blink': $help = 'New device, in standby mode (spun-down)'; break; - case 'yellow-on': $help = $disk['type']=='Parity' ? 'Parity is invalid' : 'Device contents emulated'; break; - case 'yellow-blink': $help = $disk['type']=='Parity' ? 'Parity is invalid, in standby mode (spun-down)' : 'Device contents emulated, in standby mode (spun-down)'; break; - case 'red-on': case 'red-blink': $help = $disk['type']=='Parity' ? 'Parity device is disabled' : 'Device is disabled, contents emulated'; break; - case 'red-off': $help = $disk['type']=='Parity' ? 'Parity device is missing' : 'Device is missing (disabled), contents emulated'; break; - case 'grey-off': $help = 'Device not present'; break; + case 'green-on': $orb = 'circle'; $color = 'green'; $help = 'Normal operation, device is active'; break; + case 'green-blink': $orb = 'circle'; $color = 'grey'; $help = 'Device is in standby mode (spun-down)'; break; + case 'blue-on': $orb = 'square'; $color = 'blue'; $help = 'New device'; break; + case 'blue-blink': $orb = 'square'; $color = 'grey'; $help = 'New device, in standby mode (spun-down)'; break; + case 'yellow-on': $orb = 'warning'; $color = 'yellow'; $help = $disk['type']=='Parity' ? 'Parity is invalid' : 'Device contents emulated'; break; + case 'yellow-blink': $orb = 'warning'; $color = 'grey'; $help = $disk['type']=='Parity' ? 'Parity is invalid, in standby mode (spun-down)' : 'Device contents emulated, in standby mode (spun-down)'; break; + case 'red-on': case 'red-blink': $orb = 'times'; $color = 'red'; $help = $disk['type']=='Parity' ? 'Parity device is disabled' : 'Device is disabled, contents emulated'; break; + case 'red-off': $orb = 'times'; $color = 'red'; $help = $disk['type']=='Parity' ? 'Parity device is missing' : 'Device is missing (disabled), contents emulated'; break; + case 'grey-off': $orb = 'square'; $color = 'grey'; $help = 'Device not present'; break; } - $status = "$ctrl$help"; + $status = "$ctrl$help"; $link = ($disk['type']=='Parity' && strpos($disk['status'],'_NP')===false) || ($disk['type']=='Data' && $disk['status']!='DISK_NP') || ($disk['type']=='Cache' && $disk['status']!='DISK_NP') || @@ -101,7 +101,13 @@ function device_browse(&$disk) { function device_desc(&$disk) { global $var; $size = my_scale($disk['size'] ? $disk['size']*1024 : $disk['sectors']*$disk['sector_size'],$unit,-1); - $log = $var['fsState']=='Started' ? "" : ""; + switch ($disk['type']) { + case 'Flash' : $type = 'usb'; break; + case 'Parity': $type = $disk['rotational'] ? 'disk' : 'nvme'; break; + case 'Data' : + case 'Cache' : $type = $disk['rotational'] ? ($disk['luksState'] ? 'disk-encrypted' : 'disk') : 'nvme'; break; + } + $log = $var['fsState']=='Started' ? "" : ""; return $log.my_id($disk['id'])." - $size $unit ({$disk['device']})"; } function assignment(&$disk) { @@ -137,13 +143,13 @@ function fs_info(&$disk) { echo "".my_scale($disk['fsUsed']*1024,$unit)." $unit"; } else { $used = isset($disk['fsSize']) && $disk['fsSize']>0 ? 100-round(100*$disk['fsFree']/$disk['fsSize']) : 0; - echo "
".my_scale($disk['fsUsed']*1024,$unit)." $unit
"; + echo "
".my_scale($disk['fsUsed']*1024,$unit)." $unit
"; } if ($display['text']<10 ? $display['text']%10==0 : $display['text']%10!=0) { echo "".my_scale($disk['fsFree']*1024,$unit)." $unit"; } else { $free = isset($disk['fsSize']) && $disk['fsSize']>0 ? round(100*$disk['fsFree']/$disk['fsSize']) : 0; - echo "
".my_scale($disk['fsFree']*1024,$unit)." $unit
"; + echo "
".my_scale($disk['fsFree']*1024,$unit)." $unit
"; } echo "".device_browse($disk).""; } else @@ -193,9 +199,10 @@ function array_offline(&$disk) { case 'DISK_INVALID': case 'DISK_DSBL_NEW': case 'DISK_NEW': + $spin = strpos($disk['color'],'blink')===false; echo "".device_info($disk,false).""; echo "".assignment($disk).""; - echo "".my_temp($disk['temp']).""; + echo "".($spin ? my_temp($disk['temp']) : '*').""; echo "$warning"; break; case 'DISK_WRONG': @@ -246,9 +253,10 @@ function array_online(&$disk) { break; case 'DISK_DSBL': default: + $spin = strpos($disk['color'],'blink')===false; echo "".device_info($disk,true).""; echo "".device_desc($disk).""; - echo "".my_temp($disk['temp']).""; + echo "".($spin ? my_temp($disk['temp']) : '*').""; echo "".my_diskio($data[0])."".my_number($disk['numReads']).""; echo "".my_diskio($data[1])."".my_number($disk['numWrites']).""; echo "".my_number($disk['numErrors']).""; @@ -293,13 +301,13 @@ function show_totals($text) { echo "".my_scale($sum['fsUsed']*1024,$unit)." $unit"; } else { $used = $sum['fsSize'] ? 100-round(100*$sum['fsFree']/$sum['fsSize']) : 0; - echo "
".my_scale($sum['fsUsed']*1024,$unit)." $unit
"; + echo "
".my_scale($sum['fsUsed']*1024,$unit)." $unit
"; } if ($display['text']<10 ? $display['text']%10==0 : $display['text']%10!=0) { echo "".my_scale($sum['fsFree']*1024,$unit)." $unit"; } else { $free = $sum['fsSize'] ? round(100*$sum['fsFree']/$sum['fsSize']) : 0; - echo "
".my_scale($sum['fsFree']*1024,$unit)." $unit
"; + echo "
".my_scale($sum['fsFree']*1024,$unit)." $unit
"; } echo ""; } else @@ -348,7 +356,7 @@ case 'array': foreach ($parity as $disk) array_offline($disk); echo ""; foreach ($data as $disk) array_offline($disk); - echo "Slots:".array_slots().""; + echo "Slots:".array_slots().""; } else { foreach ($parity as $disk) if ($disk['status']!='DISK_NP_DSBL') array_online($disk); foreach ($data as $disk) array_online($disk); @@ -361,7 +369,7 @@ case 'flash': $disk['fsUsed'] = $disk['fsSize']-$disk['fsFree']; $flash = &$sec['flash']; $share = ""; if ($var['shareSMBEnabled']=='yes' && $flash['export']=='e' && $flash['security']=='public') - $share = "Flash device is set as public share
Please change share SMB security
"; + $share = "Flash device is set as public share
Please change share SMB security
Click on FLASH above this message
"; echo ""; echo "".$share.device_info($disk,true).""; echo "".device_desc($disk).""; @@ -385,7 +393,7 @@ case 'cache': } $data = []; foreach ($log as $key => $value) $data[] = "$key=\"$value\""; file_put_contents($tmp,implode("\n",$data)); - echo "Slots:".cache_slots($off).""; + echo "Slots:".cache_slots($off).""; } else { foreach ($cache as $disk) array_online($disk); @unlink($tmp); diff --git a/plugins/dynamix/include/DiskList.php b/plugins/dynamix/include/DiskList.php index eea877037..3a2f74d89 100644 --- a/plugins/dynamix/include/DiskList.php +++ b/plugins/dynamix/include/DiskList.php @@ -1,6 +1,6 @@ $disk) { $color = $disk['fsColor']; $row++; - $ball = "/webGui/images/$color.png"; switch ($color) { - case 'green-on': $help = 'All files protected'; break; - case 'yellow-on': $help = 'All files unprotected'; break; + case 'green-on' : $orb = 'circle'; $color = 'green'; $help = 'All files protected'; break; + case 'yellow-on': $orb = 'warning'; $color = 'yellow'; $help = 'All files unprotected'; break; } if ($crypto) switch ($disk['luksState']) { case 0: $luks = ""; break; @@ -86,7 +85,7 @@ foreach ($disks as $name => $disk) { default: $luks = "Unknown encryption state'"; break; } else $luks = ""; echo ""; - echo "$help$luks$name"; + echo "$help$luks$name"; echo "{$disk['comment']}"; echo "".disk_share_settings($var['shareSMBEnabled'], $sec[$name]).""; echo "".disk_share_settings($var['shareNFSEnabled'], $sec_nfs[$name]).""; diff --git a/plugins/dynamix/include/ShareList.php b/plugins/dynamix/include/ShareList.php index 4cdc39d43..8d5f69a4c 100644 --- a/plugins/dynamix/include/ShareList.php +++ b/plugins/dynamix/include/ShareList.php @@ -1,6 +1,6 @@ $share) { $row++; $color = $share['color']; - $ball = "/webGui/images/$color.png"; switch ($color) { - case 'green-on': $help = 'All files protected'; break; - case 'yellow-on': $help = 'Some or all files unprotected'; break; + case 'green-on' : $orb = 'circle'; $color = 'green'; $help = 'All files protected'; break; + case 'yellow-on': $orb = 'warning'; $color = 'yellow'; $help = 'Some or all files unprotected'; break; } if ($crypto) switch ($share['luksStatus']) { case 0: $luks = ""; break; @@ -87,7 +86,7 @@ foreach ($shares as $name => $share) { default: $luks = "Unknown encryption state'"; break; } else $luks = ""; echo ""; - echo "$help$luks$name"; + echo "$help$luks$name"; echo "{$share['comment']}"; echo "".user_share_settings($var['shareSMBEnabled'], $sec[$name]).""; echo "".user_share_settings($var['shareNFSEnabled'], $sec_nfs[$name])."";