mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 10:08:25 -05:00
Multi cache pool support
This commit is contained in:
@@ -59,11 +59,10 @@ if ($user && count($rows)) {
|
||||
$tag = implode('|',array_merge(['disk'],pools_filter($disks)));
|
||||
$set = explode(';',str_replace(',;',',',preg_replace("/($tag)/",';$1',exec("shopt -s dotglob; getfattr --no-dereference --absolute-names --only-values -n system.LOCATIONS $all 2>/dev/null"))));
|
||||
}
|
||||
foreach ($rows as $row) {
|
||||
foreach ($rows as &$row) {
|
||||
if ($user) $row .= '|'.$set[++$i];
|
||||
if (substr($row,0,9)=='directory') $dirs[] = $row; else $files[] = $row;
|
||||
}
|
||||
unset($rows,$set);
|
||||
echo "<thead><tr><th>"._('Type')."</th><th class='sorter-text'>"._('Name')."</th><th>"._('Size')."</th><th>"._('Last Modified')."</th><th>"._('Location')."</th></tr></thead>";
|
||||
if ($link = parent_link()) echo "<tbody class='tablesorter-infoOnly'><tr><td><div><img src='/webGui/icons/folderup.png'></div></td><td>$link</td><td colspan='3'></td></tr></tbody>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user