diff options
author | Sage Weil <sage@newdream.net> | 2021-01-29 22:41:48 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2021-02-17 23:13:27 +0100 |
commit | 60ebc9b04e1baae080fc5680b2a1a469f87d93b5 (patch) | |
tree | e7be1ab1b36285780241e624494c5a814146a24b /src/mds/MDSMap.h | |
parent | Merge pull request #37144 from jmolmo/storage_devices_mgmt (diff) | |
download | ceph-60ebc9b04e1baae080fc5680b2a1a469f87d93b5.tar.xz ceph-60ebc9b04e1baae080fc5680b2a1a469f87d93b5.zip |
mds: add volumes + status to data: section of 'ceph status'
This expands the data: section to include volume count and high-level
status, expanding the view of "logical" data services:
data:
volumes: 0/1 file systems healthy, 1 degraded
pools: 3 pools, 65 pgs
objects: 22 objects, 2.3 KiB
usage: 1.0 GiB used, 100 GiB / 101 GiB avail
pgs: 65 active+clean
or
data:
volumes: 1/1 file systems healthy
pools: 3 pools, 65 pgs
objects: 22 objects, 2.3 KiB
usage: 1.0 GiB used, 100 GiB / 101 GiB avail
pgs: 65 active+clean
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/mds/MDSMap.h')
-rw-r--r-- | src/mds/MDSMap.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mds/MDSMap.h b/src/mds/MDSMap.h index b3b8b7c7bff..56344dd96a9 100644 --- a/src/mds/MDSMap.h +++ b/src/mds/MDSMap.h @@ -332,6 +332,9 @@ public: void get_failed_mds_set(std::set<mds_rank_t>& s) const { s = failed; } + void get_damaged_mds_set(std::set<mds_rank_t>& s) const { + s = damaged; + } // features uint64_t get_up_features(); @@ -473,7 +476,10 @@ public: // recovery_set. bool is_degraded() const; bool is_any_failed() const { - return failed.size(); + return !failed.empty(); + } + bool is_any_damaged() const { + return !damaged.empty(); } bool is_resolving() const { return |