From faabe9e297e0d8e156e267b9774edbdb4fa2f9a8 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 12 Nov 2015 09:47:49 +0100 Subject: [PATCH] lvmthin: fix used space (only use data%) --- PVE/Storage/LVMPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index ddae517..d776e43 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -145,7 +145,7 @@ sub lvm_list_volumes { $data_percent ||= 0; $meta_percent ||= 0; $snap_percent ||= 0; - $d->{used} = int((($data_percent + $meta_percent + $snap_percent) * $lv_size)/100); + $d->{used} = int(($data_percent * $lv_size)/100); } $lvs->{$vg_name}->{$lv_name} = $d; });