diff options
Diffstat (limited to 'src/include/rbd/librbd.hpp')
-rw-r--r-- | src/include/rbd/librbd.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/include/rbd/librbd.hpp b/src/include/rbd/librbd.hpp index 5d307cdedf5..6d97d1087ad 100644 --- a/src/include/rbd/librbd.hpp +++ b/src/include/rbd/librbd.hpp @@ -532,6 +532,14 @@ public: Image(); ~Image(); + // non-copyable + Image(const Image& rhs) = delete; + Image& operator=(const Image& rhs) = delete; + + // moveable + Image(Image&& rhs) noexcept; + Image& operator=(Image&& rhs) noexcept; + int close(); int aio_close(RBD::AioCompletion *c); @@ -854,9 +862,6 @@ public: private: friend class RBD; - Image(const Image& rhs); - const Image& operator=(const Image& rhs); - image_ctx_t ctx; }; |