mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
librados.h: add other TMAP definitions
also add a comment in rados.h about the defines in librados.h
This commit is contained in:
parent
929048f98f
commit
fbbff74304
@ -10,7 +10,9 @@ extern "C" {
|
||||
#include <string.h>
|
||||
|
||||
#ifndef CEPH_OSD_TMAP_SET
|
||||
#define CEPH_OSD_TMAP_HDR 'h'
|
||||
#define CEPH_OSD_TMAP_SET 's'
|
||||
#define CEPH_OSD_TMAP_RM 'r'
|
||||
#endif
|
||||
|
||||
/* initialization */
|
||||
|
@ -272,6 +272,10 @@ static inline int ceph_osd_op_mode_modify(int op)
|
||||
return (op & CEPH_OSD_OP_MODE) == CEPH_OSD_OP_MODE_WR;
|
||||
}
|
||||
|
||||
/*
|
||||
* note that the following tmap stuff is also defined in the ceph librados.h
|
||||
* any modification here needs to be updated there
|
||||
*/
|
||||
#define CEPH_OSD_TMAP_HDR 'h'
|
||||
#define CEPH_OSD_TMAP_SET 's'
|
||||
#define CEPH_OSD_TMAP_RM 'r'
|
||||
|
Loading…
Reference in New Issue
Block a user