diff options
| author | Yan, Zheng <zyan@redhat.com> | 2016-11-10 03:02:06 -0500 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-12-12 17:54:27 -0500 |
| commit | e9e427f0a14f7e4773896dd7af357819a56d097a (patch) | |
| tree | 0dc4cbb9e97788412760a6d03d86b0967e655db4 /include/linux/ceph | |
| parent | 7ce469a53e7106acdaca2e25027941d0f7c12a8e (diff) | |
ceph: check availability of mds cluster on mount
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/mdsmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ceph/mdsmap.h b/include/linux/ceph/mdsmap.h index 87ed09f54800..8ed5dc505fbb 100644 --- a/include/linux/ceph/mdsmap.h +++ b/include/linux/ceph/mdsmap.h | |||
| @@ -31,6 +31,10 @@ struct ceph_mdsmap { | |||
| 31 | int m_num_data_pg_pools; | 31 | int m_num_data_pg_pools; |
| 32 | u64 *m_data_pg_pools; | 32 | u64 *m_data_pg_pools; |
| 33 | u64 m_cas_pg_pool; | 33 | u64 m_cas_pg_pool; |
| 34 | |||
| 35 | bool m_enabled; | ||
| 36 | bool m_damaged; | ||
| 37 | int m_num_laggy; | ||
| 34 | }; | 38 | }; |
| 35 | 39 | ||
| 36 | static inline struct ceph_entity_addr * | 40 | static inline struct ceph_entity_addr * |
| @@ -59,5 +63,6 @@ static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w) | |||
| 59 | extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m); | 63 | extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m); |
| 60 | extern struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end); | 64 | extern struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end); |
| 61 | extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m); | 65 | extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m); |
| 66 | extern bool ceph_mdsmap_is_cluster_available(struct ceph_mdsmap *m); | ||
| 62 | 67 | ||
| 63 | #endif | 68 | #endif |
