From f23554447c5d75e828eaf67a8b15d73ad7005420 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 27 Dec 2021 08:27:35 -0600 Subject: Handle destroy requests This is a temporary fix for what appears to be a Tokio issue. See tokio-rs/tokio#4349. --- examples/ext2.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/ext2.rs b/examples/ext2.rs index 5552a58..4c55a64 100644 --- a/examples/ext2.rs +++ b/examples/ext2.rs @@ -16,6 +16,7 @@ use std::{ ffi::{CStr, OsStr}, fs::File, mem::size_of, + ops::ControlFlow, os::unix::{ffi::OsStrExt, io::AsRawFd}, path::{Path, PathBuf}, time::{Duration, UNIX_EPOCH}, @@ -502,7 +503,10 @@ async fn main_loop(session: Start, fs: Ext2) -> FuseResult<()> { } }); - result.await?; + match result.await? { + ControlFlow::Break(()) => break Ok(()), + ControlFlow::Continue(()) => continue, + } } } -- cgit v1.2.3