mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Multi cache pool support
This commit is contained in:
@@ -344,7 +344,8 @@ function cache_slots($off,$pool,$min,$slots) {
|
||||
return $out;
|
||||
}
|
||||
$crypto = false;
|
||||
$pools = [];
|
||||
$cache = cache_filter($disks);
|
||||
$pools = pools_filter($cache);
|
||||
switch ($_POST['device']) {
|
||||
case 'array':
|
||||
$parity = parity_filter($disks);
|
||||
@@ -379,8 +380,6 @@ case 'flash':
|
||||
echo "</tr>";
|
||||
break;
|
||||
case 'cache':
|
||||
$cache = cache_filter($disks);
|
||||
$pools = pools_filter($cache);
|
||||
foreach ($pools as $pool) {
|
||||
$tmp = "/var/tmp/$pool.log.tmp";
|
||||
foreach ($cache as $disk) if (prefix($disk['name'])==$pool) $crypto |= $disk['luksState']!=0 || vfs_luks($disk['fsType']);
|
||||
|
||||
Reference in New Issue
Block a user