提交 a1fbb5e7 编写于 作者: I Ilya Dryomov

rbd: start enums at 1 instead of 0

Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 dccbf080
......@@ -217,12 +217,14 @@ struct rbd_obj_request;
typedef void (*rbd_obj_callback_t)(struct rbd_obj_request *);
enum obj_request_type {
OBJ_REQUEST_NODATA, OBJ_REQUEST_BIO, OBJ_REQUEST_PAGES
OBJ_REQUEST_NODATA = 1,
OBJ_REQUEST_BIO,
OBJ_REQUEST_PAGES,
};
enum obj_operation_type {
OBJ_OP_READ = 1,
OBJ_OP_WRITE,
OBJ_OP_READ,
OBJ_OP_DISCARD,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册