]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/rbd_ggate/Request.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_RBD_GGATE_REQUEST_H
5 #define CEPH_RBD_GGATE_REQUEST_H
24 Request(ggate_drv_req_t req
) : req(req
) {
28 return ggate_drv_req_id(req
);
32 return static_cast<Command
>(ggate_drv_req_cmd(req
));
36 return ggate_drv_req_length(req
);
39 uint64_t get_offset() {
40 return ggate_drv_req_offset(req
);
43 uint64_t get_error() {
44 return ggate_drv_req_error(req
);
47 void set_error(int error
) {
48 ggate_drv_req_set_error(req
, error
);
55 #endif // CEPH_RBD_GGATE_REQUEST_H