From a0e6308eede31540b7fa6516e88991a4f153e47d Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Thu, 15 Apr 2021 18:58:52 +0530 Subject: [PATCH] mgr/dashboard: filesystem pool size should use stored stat Fixes: https://tracker.ceph.com/issues/50195 Signed-off-by: Avan Thakkar Replaces 'bytes_used' with 'stored' stat to see the correct results of CephFS pool stats. (cherry picked from commit 7110fd4e0c257d20aa56591f05d74a2851a2fe00) --- src/pybind/mgr/dashboard/controllers/cephfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index a90fd2f413177..0a196913c2fe7 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -256,7 +256,7 @@ class CephFS(RESTController): pools_table.append({ "pool": pools[pool_id]['pool_name'], "type": pool_type, - "used": stats['bytes_used'], + "used": stats['stored'], "avail": stats['max_avail'] }) -- 2.39.5