librados.h: add other TMAP definitions

also add a comment in rados.h about the defines in librados.h
This commit is contained in:
Yehuda Sadeh 2010-05-21 13:44:40 -07:00
parent 929048f98f
commit fbbff74304
2 changed files with 6 additions and 0 deletions

View File

@ -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 */

View File

@ -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'