]>
git.proxmox.com Git - ceph.git/blob - ceph/src/librbd/api/Namespace.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_NAMESPACE_H
5 #define CEPH_LIBRBD_API_NAMESPACE_H
7 #include "include/rados/librados_fwd.hpp"
8 #include "include/rbd/librbd.hpp"
18 template <typename ImageCtxT
= librbd::ImageCtx
>
21 static int create(librados::IoCtx
& io_ctx
, const std::string
& name
);
22 static int remove(librados::IoCtx
& io_ctx
, const std::string
& name
);
23 static int list(librados::IoCtx
& io_ctx
, std::vector
<std::string
>* names
);
24 static int exists(librados::IoCtx
& io_ctx
, const std::string
& name
, bool *exists
);
31 extern template class librbd::api::Namespace
<librbd::ImageCtx
>;
33 #endif // CEPH_LIBRBD_API_NAMESPACE_H