From 59de892b49d588acd2d3e5e632d9b3bad8a7c03e Mon Sep 17 00:00:00 2001 From: ln-tech Date: Tue, 22 Oct 2019 08:05:22 +0200 Subject: cleaned code and atomic_ints against --- src/fuse/connection.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/fuse/connection.h') 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 #include #include +#define FUSE_USE_VERSION 30 +#include + +#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); -- cgit v1.2.3-55-g7522