#include "librbd/ObjectMap.h"
#include "librbd/Operations.h"
#include "librbd/operation/ResizeRequest.h"
+#include "librbd/Types.h"
#include "librbd/Utils.h"
#include "librbd/LibrbdWriteback.h"
#include "librbd/exclusive_lock/AutomaticPolicy.h"
#include "librbd/internal.h"
#include "librbd/Operations.h"
#include "librbd/TaskFinisher.h"
+#include "librbd/Types.h"
#include "librbd/Utils.h"
#include "librbd/exclusive_lock/Policy.h"
#include "librbd/image_watcher/NotifyLockOwner.h"
#include "librbd/ImageState.h"
#include "librbd/ImageWatcher.h"
#include "librbd/ObjectMap.h"
+#include "librbd/Types.h"
#include "librbd/Utils.h"
#include "librbd/journal/DisabledPolicy.h"
#include "librbd/journal/StandardPolicy.h"
namespace librbd {
+// Performance counters
+enum {
+ l_librbd_first = 26000,
+
+ l_librbd_rd, // read ops
+ l_librbd_rd_bytes, // bytes read
+ l_librbd_rd_latency, // average latency
+ l_librbd_wr,
+ l_librbd_wr_bytes,
+ l_librbd_wr_latency,
+ l_librbd_discard,
+ l_librbd_discard_bytes,
+ l_librbd_discard_latency,
+ l_librbd_flush,
+ l_librbd_flush_latency,
+
+ l_librbd_ws,
+ l_librbd_ws_bytes,
+ l_librbd_ws_latency,
+
+ l_librbd_cmp,
+ l_librbd_cmp_bytes,
+ l_librbd_cmp_latency,
+
+ l_librbd_snap_create,
+ l_librbd_snap_remove,
+ l_librbd_snap_rollback,
+ l_librbd_snap_rename,
+
+ l_librbd_notify,
+ l_librbd_resize,
+
+ l_librbd_readahead,
+ l_librbd_readahead_bytes,
+
+ l_librbd_invalidate_cache,
+
+ l_librbd_last,
+};
+
/** @brief Unique identification of a parent in clone relationship.
* Cloning an image creates a child image that keeps a reference
* to its parent. This allows copy-on-write images. */
#include "common/WorkQueue.h"
#include "librbd/Types.h"
-enum {
- l_librbd_first = 26000,
-
- l_librbd_rd, // read ops
- l_librbd_rd_bytes, // bytes read
- l_librbd_rd_latency, // average latency
- l_librbd_wr,
- l_librbd_wr_bytes,
- l_librbd_wr_latency,
- l_librbd_discard,
- l_librbd_discard_bytes,
- l_librbd_discard_latency,
- l_librbd_flush,
- l_librbd_flush_latency,
- l_librbd_ws,
- l_librbd_ws_bytes,
- l_librbd_ws_latency,
-
- l_librbd_cmp,
- l_librbd_cmp_bytes,
- l_librbd_cmp_latency,
-
- l_librbd_snap_create,
- l_librbd_snap_remove,
- l_librbd_snap_rollback,
- l_librbd_snap_rename,
-
- l_librbd_notify,
- l_librbd_resize,
-
- l_librbd_readahead,
- l_librbd_readahead_bytes,
-
- l_librbd_invalidate_cache,
-
- l_librbd_last,
-};
-
namespace librbd {
struct ImageCtx;
#include "librbd/ImageCtx.h"
#include "librbd/internal.h"
-
#include "librbd/Journal.h"
+#include "librbd/Types.h"
#ifdef WITH_LTTNG
#include "tracing/librbd.h"
#include "librbd/ImageCtx.h"
#include "librbd/internal.h"
#include "librbd/Journal.h"
+#include "librbd/Types.h"
#include "librbd/Utils.h"
#include "librbd/cache/ImageCache.h"
#include "librbd/io/AioCompletion.h"