]>
git.proxmox.com Git - ceph.git/blob - ceph/src/librbd/api/PoolMetadata.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_LIBRBD_API_POOL_METADATA_H
5 #define CEPH_LIBRBD_API_POOL_METADATA_H
7 #include "include/buffer_fwd.h"
8 #include "include/rados/librados_fwd.hpp"
19 template <typename ImageCtxT
= librbd::ImageCtx
>
22 static int get(librados::IoCtx
& io_ctx
, const std::string
&key
,
24 static int set(librados::IoCtx
& io_ctx
, const std::string
&key
,
25 const std::string
&value
);
26 static int remove(librados::IoCtx
& io_ctx
, const std::string
&key
);
27 static int list(librados::IoCtx
& io_ctx
, const std::string
&start
,
28 uint64_t max
, std::map
<std::string
, ceph::bufferlist
> *pairs
);
34 extern template class librbd::api::PoolMetadata
<librbd::ImageCtx
>;
36 #endif // CEPH_LIBRBD_API_POOL_METADATA_H