diff options
| author | Alex Elder <elder@inktank.com> | 2013-02-15 12:42:30 -0500 |
|---|---|---|
| committer | Alex Elder <elder@inktank.com> | 2013-02-18 13:20:13 -0500 |
| commit | 4b568b1aaf23d0ce64b98d01d5ad1bcc7694440a (patch) | |
| tree | ae843df0bdb5f5c4c008fc0dbee36c4608cde905 /include/linux | |
| parent | 0315a7770983bbe69211efed1aaee08324acd54c (diff) | |
libceph: add ceph_osd_state_name()
Add the definition of ceph_osd_state_name(), to match its
counterpart in user space.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ceph/rados.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 9c3b4aaf516b..b65182aba6f7 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h | |||
| @@ -150,6 +150,8 @@ struct ceph_eversion { | |||
| 150 | #define CEPH_OSD_AUTOOUT (1<<2) /* osd was automatically marked out */ | 150 | #define CEPH_OSD_AUTOOUT (1<<2) /* osd was automatically marked out */ |
| 151 | #define CEPH_OSD_NEW (1<<3) /* osd is new, never marked in */ | 151 | #define CEPH_OSD_NEW (1<<3) /* osd is new, never marked in */ |
| 152 | 152 | ||
| 153 | extern const char *ceph_osd_state_name(int s); | ||
| 154 | |||
| 153 | /* osd weights. fixed point value: 0x10000 == 1.0 ("in"), 0 == "out" */ | 155 | /* osd weights. fixed point value: 0x10000 == 1.0 ("in"), 0 == "out" */ |
| 154 | #define CEPH_OSD_IN 0x10000 | 156 | #define CEPH_OSD_IN 0x10000 |
| 155 | #define CEPH_OSD_OUT 0 | 157 | #define CEPH_OSD_OUT 0 |
