X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibrbd%2Fcache%2FImageWriteback.h;fp=src%2Fceph%2Fsrc%2Flibrbd%2Fcache%2FImageWriteback.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=9bc9b5e6d26d9c6794c99646466c3e064d70c698;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/librbd/cache/ImageWriteback.h b/src/ceph/src/librbd/cache/ImageWriteback.h deleted file mode 100644 index 9bc9b5e..0000000 --- a/src/ceph/src/librbd/cache/ImageWriteback.h +++ /dev/null @@ -1,54 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_LIBRBD_CACHE_IMAGE_WRITEBACK -#define CEPH_LIBRBD_CACHE_IMAGE_WRITEBACK - -#include "include/buffer_fwd.h" -#include "include/int_types.h" -#include - -class Context; - -namespace librbd { - -struct ImageCtx; - -namespace cache { - -/** - * client-side, image extent cache writeback handler - */ -template -class ImageWriteback { -public: - typedef std::vector > Extents; - - ImageWriteback(ImageCtxT &image_ctx); - - void aio_read(Extents &&image_extents, ceph::bufferlist *bl, - int fadvise_flags, Context *on_finish); - void aio_write(Extents &&image_extents, ceph::bufferlist&& bl, - int fadvise_flags, Context *on_finish); - void aio_discard(uint64_t offset, uint64_t length, - bool skip_partial_discard, Context *on_finish); - void aio_flush(Context *on_finish); - void aio_writesame(uint64_t offset, uint64_t length, - ceph::bufferlist&& bl, - int fadvise_flags, Context *on_finish); - void aio_compare_and_write(Extents &&image_extents, - ceph::bufferlist&& cmp_bl, - ceph::bufferlist&& bl, - uint64_t *mismatch_offset, - int fadvise_flags, Context *on_finish); -private: - ImageCtxT &m_image_ctx; - -}; - -} // namespace cache -} // namespace librbd - -extern template class librbd::cache::ImageWriteback; - -#endif // CEPH_LIBRBD_CACHE_IMAGE_WRITEBACK