diff --git a/clients/filesystem-fuse/src/fuse_api_handle_debug.rs b/clients/filesystem-fuse/src/fuse_api_handle_debug.rs index 0ee7201641a..44e1ca40ab9 100644 --- a/clients/filesystem-fuse/src/fuse_api_handle_debug.rs +++ b/clients/filesystem-fuse/src/fuse_api_handle_debug.rs @@ -35,6 +35,7 @@ use std::ffi::{OsStr, OsString}; use std::fmt; use std::num::NonZeroU32; use std::time::{Duration, SystemTime}; +use crate::config::AppConfig; use crate::fuse_api_handle::FuseApiHandle; /// Wrapper Struct for `Timestamp` to enable custom Display implementation @@ -93,9 +94,9 @@ pub(crate) struct FuseApiHandleDebug { } impl FuseApiHandleDebug { - pub fn new(fs: T, context: FileSystemContext) -> Self { + pub fn new(fs: T, _config: &AppConfig, context: FileSystemContext,) -> Self { Self { - inner: FuseApiHandle::new(fs, context), + inner: FuseApiHandle::new(fs, _config, context), } } } diff --git a/clients/filesystem-fuse/src/gvfs_fuse.rs b/clients/filesystem-fuse/src/gvfs_fuse.rs index d472895d2b3..a3988092ee5 100644 --- a/clients/filesystem-fuse/src/gvfs_fuse.rs +++ b/clients/filesystem-fuse/src/gvfs_fuse.rs @@ -31,6 +31,7 @@ use once_cell::sync::Lazy; use std::path::Path; use std::sync::Arc; use tokio::sync::Mutex; +use crate::fuse_api_handle_debug::FuseApiHandleDebug; const FILESET_PREFIX: &str = "gvfs://fileset/"; @@ -39,8 +40,8 @@ static SERVER: Lazy>>> = Lazy::new(|| Mutex::new(No pub(crate) enum CreateFileSystemResult { Memory(MemoryFileSystem), Gvfs(GravitinoFilesetFileSystem), - FuseMemoryFs(FuseApiHandle>), - FuseGvfs(FuseApiHandle>), + FuseMemoryFs(FuseApiHandleDebug>), + FuseGvfs(FuseApiHandleDebug>), None, } @@ -95,7 +96,7 @@ pub async fn create_raw_fs( ) -> GvfsResult { match path_fs { CreateFileSystemResult::Memory(fs) => { - let fs = FuseApiHandle::new( + let fs = FuseApiHandleDebug::new( DefaultRawFileSystem::new(fs, config, &fs_context), config, fs_context, @@ -103,7 +104,7 @@ pub async fn create_raw_fs( Ok(CreateFileSystemResult::FuseMemoryFs(fs)) } CreateFileSystemResult::Gvfs(fs) => { - let fs = FuseApiHandle::new( + let fs = FuseApiHandleDebug::new( DefaultRawFileSystem::new(fs, config, &fs_context), config, fs_context,