From 4c6b063463ae48b3509ff8e66cd391f8637a86af Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 21 Aug 2018 12:44:54 +0200 Subject: fuse: diagnostic FLUSH interrupt We add dummy interrupt handling for the FLUSH fuse message. It can be enabled by the "--fuse-flush-handle-interrupt" hidden command line option, or "-ofuse-flush-handle-interrupt=yes" mount option. It serves no other than diagnostic & demonstational purposes -- to exercise the interrupt handling framework a bit and to give an usage example. Documentation is also provided that showcases interrupt handling via FLUSH. Change-Id: I522f1e798501d06b74ac3592a5f73c1ab0590c60 updates: #465 Signed-off-by: Csaba Henk --- xlators/mount/fuse/src/fuse-bridge.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/mount/fuse/src/fuse-bridge.h') diff --git a/xlators/mount/fuse/src/fuse-bridge.h b/xlators/mount/fuse/src/fuse-bridge.h index b391af76bac..b997d9e0cbb 100644 --- a/xlators/mount/fuse/src/fuse-bridge.h +++ b/xlators/mount/fuse/src/fuse-bridge.h @@ -161,6 +161,8 @@ struct fuse_private { /* Interrupt subscription */ struct list_head interrupt_list; pthread_mutex_t interrupt_mutex; + + gf_boolean_t flush_handle_interrupt; }; typedef struct fuse_private fuse_private_t; @@ -194,7 +196,7 @@ typedef struct fuse_interrupt_record fuse_interrupt_record_t; typedef void (*fuse_interrupt_handler_t)(xlator_t *this, fuse_interrupt_record_t *); struct fuse_interrupt_record { - struct fuse_in_header fuse_in_header; + fuse_in_header_t fuse_in_header; void *data; gf_boolean_t hit; fuse_interrupt_state_t interrupt_state; -- cgit