Revert "Multi cache pool support"

This reverts commit b01b1da4c1.
This commit is contained in:
bergware
2020-04-02 20:01:07 +02:00
parent b01b1da4c1
commit b0e6885f97

View File

@@ -344,8 +344,7 @@ function cache_slots($off,$pool,$min,$slots) {
return $out;
}
$crypto = false;
$cache = cache_filter($disks);
$pools = pools_filter($cache);
$pools = [];
switch ($_POST['device']) {
case 'array':
$parity = parity_filter($disks);
@@ -380,6 +379,8 @@ 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']);