[pve-devel] [PATCH manager v2 1/2] remove (near)full status for storages

Dominik Csapak d.csapak at proxmox.com
Tue Dec 12 14:03:34 CET 2017


since this is not a good default, we do not want the user
to have to configure those limits for each storage, and
a warning triangle was confusing for multiple users,
we remove this again

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2Tools.pm     |  9 ---------
 www/css/ext6-pve.css | 14 --------------
 2 files changed, 23 deletions(-)

diff --git a/PVE/API2Tools.pm b/PVE/API2Tools.pm
index f1df2384..7b4c425a 100644
--- a/PVE/API2Tools.pm
+++ b/PVE/API2Tools.pm
@@ -126,15 +126,6 @@ sub extract_storage_stats {
 	$entry->{maxdisk} = ($d->[1] || 0) + 0;
 	$entry->{disk} = ($d->[2] || 0) + 0;
 	$entry->{status} = 'available';
-	if ($entry->{disk} > 0 && $entry->{maxdisk} > 0) {
-	    my $usage = $entry->{disk} / $entry->{maxdisk};
-
-	    if ($usage >= 0.9) {
-		$entry->{status} = 'full';
-	    } elsif ($usage >= 0.6) {
-		$entry->{status} = 'nearfull';
-	    }
-	}
     }
 
     return $entry;
diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index 4d0faf3a..cc90d5ba 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -171,20 +171,6 @@
     font-size: 0.6em;
 }
 
-/* the warning triangle symbol */
-.x-tree-icon-custom.nearfull:after,
-.x-grid-icon-custom.nearfull:after {
-    content: "\f071";
-    color: #CC8E00;
-}
-
-/* the error triangle symbol */
-.x-tree-icon-custom.full:after,
-.x-grid-icon-custom.full:after {
-    content: "\f071";
-    color: #CC1800;
-}
-
 /* the lxc template */
 .x-tree-icon-custom.lxc:after,
 .x-grid-icon-custom.lxc:after {
-- 
2.11.0





More information about the pve-devel mailing list