]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/rbd_ggate/Driver.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_DRIVER_H
5 #define CEPH_RBD_GGATE_DRIVER_H
10 #include "ggate_drv.h"
20 static int kill(const std::string
&devname
);
21 static int list(std::list
<std::string
> &devs
);
23 Driver(const std::string
&devname
, size_t sectorsize
, size_t mediasize
,
24 bool readonly
, const std::string
&info
);
29 std::string
get_devname() const;
31 int recv(Request
**req
);
32 int send(Request
*req
);
34 int resize(size_t newsize
);
37 std::string m_devname
;
42 ggate_drv_t m_drv
= 0;
48 #endif // CEPH_RBD_GGATE_DRIVER_H