1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_LIBRBD_API_POOL_H
5 #define CEPH_LIBRBD_API_POOL_H
7 #include "include/int_types.h"
8 #include "include/rados/librados_fwd.hpp"
9 #include "include/rbd/librbd.h"
18 template <typename ImageCtxT
= librbd::ImageCtx
>
21 typedef std::map
<rbd_pool_stat_option_t
, uint64_t*> StatOptions
;
23 static int init(librados::IoCtx
& io_ctx
, bool force
);
25 static int add_stat_option(StatOptions
* stat_options
,
26 rbd_pool_stat_option_t option
,
29 static int get_stats(librados::IoCtx
& io_ctx
, StatOptions
* stat_options
);
36 extern template class librbd::api::Pool
<librbd::ImageCtx
>;
38 #endif // CEPH_LIBRBD_API_POOL_H