summaryrefslogtreecommitdiffstats
path: root/src/librbd/io/IoOperations.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/librbd/io/IoOperations.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/librbd/io/IoOperations.h b/src/librbd/io/IoOperations.h
new file mode 100644
index 000000000..93d3ef4fe
--- /dev/null
+++ b/src/librbd/io/IoOperations.h
@@ -0,0 +1,18 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#pragma once
+
+#include <string>
+#include <ostream>
+
+namespace librbd {
+namespace io {
+
+ std::string rbd_io_operations_to_string(uint64_t ops,
+ std::ostream *err);
+ uint64_t rbd_io_operations_from_string(const std::string& value,
+ std::ostream *err);
+
+} // namespace io
+} // namespace librbd