forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ceph/master'
- Loading branch information
Showing
39 changed files
with
1,644 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | ||
// vim: ts=8 sw=2 smarttab | ||
|
||
#include "librbd/plugin/Api.h" | ||
#include "librbd/ImageCtx.h" | ||
#include "librbd/io/Utils.h" | ||
|
||
namespace librbd { | ||
namespace plugin { | ||
|
||
template <typename I> | ||
void Api<I>::read_parent( | ||
I *image_ctx, uint64_t object_no, const Extents &extents, | ||
librados::snap_t snap_id, const ZTracer::Trace &trace, | ||
ceph::bufferlist* data, Context* on_finish) { | ||
io::util::read_parent<I>(image_ctx, object_no, extents, snap_id, trace, data, | ||
on_finish); | ||
} | ||
|
||
} // namespace plugin | ||
} // namespace librbd | ||
|
||
template class librbd::plugin::Api<librbd::ImageCtx>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | ||
// vim: ts=8 sw=2 smarttab | ||
|
||
#ifndef CEPH_LIBRBD_PLUGIN_API_H | ||
#define CEPH_LIBRBD_PLUGIN_API_H | ||
|
||
#include "include/common_fwd.h" | ||
#include "include/int_types.h" | ||
#include "include/rados/librados.hpp" | ||
#include "librbd/io/Types.h" | ||
|
||
namespace ZTracer { struct Trace; } | ||
|
||
namespace librbd { | ||
|
||
struct ImageCtx; | ||
|
||
namespace plugin { | ||
|
||
template <typename ImageCtxT> | ||
struct Api { | ||
using Extents = librbd::io::Extents; | ||
|
||
Api() {} | ||
virtual ~Api() {} | ||
|
||
virtual void read_parent( | ||
ImageCtxT *image_ctx, uint64_t object_no, const Extents &extents, | ||
librados::snap_t snap_id, const ZTracer::Trace &trace, | ||
ceph::bufferlist* data, Context* on_finish); | ||
|
||
}; | ||
|
||
} // namespace plugin | ||
} // namespace librbd | ||
|
||
extern template class librbd::plugin::Api<librbd::ImageCtx>; | ||
|
||
#endif // CEPH_LIBRBD_PLUGIN_API_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.