Fall back to uisng df if disk space cannot be computed from the zpool
https://github.com/webmin/webmin/issues/2653
This commit is contained in:
+2
-2
@@ -370,9 +370,9 @@ foreach my $m (@mounted) {
|
||||
if ($zp) {
|
||||
($t, $f) = @$zp;
|
||||
$u = $t - $f;
|
||||
$p = $u * 100 / $t;
|
||||
$p = $u * 100 / $t if ($t);
|
||||
}
|
||||
else {
|
||||
if (!$t) {
|
||||
($t, $f, $u, $p) = &disk_space($m->[2], $m->[0]);
|
||||
}
|
||||
if (($m->[2] eq "simfs" || $m->[2] eq "vzfs" ||
|
||||
|
||||
Reference in New Issue
Block a user