Multi cache support

This commit is contained in:
bergware
2020-03-21 13:58:26 +01:00
parent c809b0a885
commit 58509f1176
10 changed files with 35 additions and 23 deletions

View File

@@ -31,6 +31,13 @@ $users = (array)parse_ini_file('state/users.ini',true);
$shares = (array)parse_ini_file('state/shares.ini',true);
$sec_nfs = (array)parse_ini_file('state/sec_nfs.ini',true);
// Pool devices
$cache = cache_filter($disks);
$pools = pools_filter($cache);
$pool_devices = false;
foreach ($pools as $pool) $pool_devices |= $cache[$pool]['devicesSb'];
// Read network settings
extract(parse_ini_file('state/network.ini',true));