Multi cache pool support

This commit is contained in:
bergware
2020-04-02 19:41:29 +02:00
parent a2078d89b9
commit b01b1da4c1
+2 -3
View File
@@ -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']);