You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 09:09:26 UTC

(opendal-yinyang) branch xuanwo/linux-fuse-writable updated: fix(fuse): define the bounded teardown grace

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/linux-fuse-writable
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git


The following commit(s) were added to refs/heads/xuanwo/linux-fuse-writable by this push:
     new b0bc709  fix(fuse): define the bounded teardown grace
b0bc709 is described below

commit b0bc709b6cd8e751594c9f350d9631b5ad47de2c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Oct 26 17:09:19 2026 +0800

    fix(fuse): define the bounded teardown grace
    
    Co-authored-by: Chojan Shang <ps...@apache.org>
---
 src/fuse/mod.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/fuse/mod.rs b/src/fuse/mod.rs
index d5fafc0..977101c 100644
--- a/src/fuse/mod.rs
+++ b/src/fuse/mod.rs
@@ -49,6 +49,8 @@ use fuser::{Config, MountOption, Session, SessionACL};
 use std::path::PathBuf;
 use std::sync::Arc;
 
+const TEARDOWN_GRACE: std::time::Duration = std::time::Duration::from_secs(5);
+
 /// Mount a validated read-only or writable FUSE volume in the foreground.
 ///
 /// `staging` must already be resolved to an absolute path by the CLI.