summaryrefslogtreecommitdiffstats
path: root/src/fuse/connection.h
diff options
context:
space:
mode:
authorln-tech2019-10-22 08:05:22 +0200
committerln-tech2019-10-27 11:49:04 +0100
commit59de892b49d588acd2d3e5e632d9b3bad8a7c03e (patch)
tree5dc819f132fe134f1ff4e73df4478786f8c7f579 /src/fuse/connection.h
parentcmake: Try to get include directories right (per target) (diff)
downloaddnbd3-59de892b49d588acd2d3e5e632d9b3bad8a7c03e.tar.gz
dnbd3-59de892b49d588acd2d3e5e632d9b3bad8a7c03e.tar.xz
dnbd3-59de892b49d588acd2d3e5e632d9b3bad8a7c03e.zip
cleaned code and atomic_ints against
Diffstat (limited to 'src/fuse/connection.h')
-rw-r--r--src/fuse/connection.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fuse/connection.h b/src/fuse/connection.h
index cae554c..c04d75b 100644
--- a/src/fuse/connection.h
+++ b/src/fuse/connection.h
@@ -6,18 +6,22 @@
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
+#define FUSE_USE_VERSION 30
+#include <fuse_lowlevel.h>
+
+#define NO_SPLICE 0
+#define SPLICE 1
struct _dnbd3_async;
typedef struct _dnbd3_async {
struct _dnbd3_async *next; // Next in this linked list (provate field, not set by caller)
- dnbd3_signal_t* signal; // Used to signal the caller
char* buffer; // Caller-provided buffer to be filled
ticks time; // When request was put on wire, 0 if not measuring
uint64_t offset;
uint32_t length;
- bool finished; // Will be set to true if the request has been handled
- bool success; // Will be set to true if the request succeeded
+ int mode; // 0 splice off, 1 splice on, ...
+ fuse_req_t *fuse_req;
} dnbd3_async_t;
bool connection_init(const char *hosts, const char *image, const uint16_t rid, const bool learnNewServers);