From bdd09286f35f1c7708148c73182c96516f57b277 Mon Sep 17 00:00:00 2001 From: yuhui Date: Fri, 27 Dec 2024 14:41:45 +0800 Subject: [PATCH 1/3] Fix error --- clients/filesystem-fuse/src/gravitino_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/filesystem-fuse/src/gravitino_client.rs b/clients/filesystem-fuse/src/gravitino_client.rs index d624c913090..a33722c3f42 100644 --- a/clients/filesystem-fuse/src/gravitino_client.rs +++ b/clients/filesystem-fuse/src/gravitino_client.rs @@ -66,8 +66,8 @@ impl GravitinoClient { pub fn init(&self) {} - pub fn do_post(&self, path: &str, data: &str) { - println!("POST request to {} with data: {}", path, data); + pub fn do_post(&self, _path: &str, _data: &str) { + todo!() } pub fn request(&self, _path: &str, _data: &str) -> Result<(), GvfsError> { From b2564cca815630a431b0ece43d7ac6750ca82f53 Mon Sep 17 00:00:00 2001 From: yuhui Date: Fri, 27 Dec 2024 14:51:37 +0800 Subject: [PATCH 2/3] Fix config error --- clients/filesystem-fuse/conf/gvfs_fuse.toml | 2 +- clients/filesystem-fuse/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/filesystem-fuse/conf/gvfs_fuse.toml b/clients/filesystem-fuse/conf/gvfs_fuse.toml index da153bea43a..374e204c0ef 100644 --- a/clients/filesystem-fuse/conf/gvfs_fuse.toml +++ b/clients/filesystem-fuse/conf/gvfs_fuse.toml @@ -19,7 +19,7 @@ [fuse] file_mask = 0o600 dir_mask = 0o700 -fs_type = "memory" +fs_type = "gvfs" [fuse.properties] diff --git a/clients/filesystem-fuse/src/main.rs b/clients/filesystem-fuse/src/main.rs index 327234c8b41..8eab5ec0d51 100644 --- a/clients/filesystem-fuse/src/main.rs +++ b/clients/filesystem-fuse/src/main.rs @@ -27,7 +27,7 @@ async fn main() -> fuse3::Result<()> { tracing_subscriber::fmt().init(); //todo(read config file from args) - let config = AppConfig::from_file(Some("conf/gvfs_fuse.toml)")); + let config = AppConfig::from_file(Some("conf/gvfs_fuse.toml")); if let Err(e) = &config { error!("Failed to load config: {:?}", e); return Err(Errno::from(libc::EINVAL)); From c0c4a72c2b4bd40d705788baf9d177666e3cd48d Mon Sep 17 00:00:00 2001 From: yuhui Date: Fri, 27 Dec 2024 14:52:32 +0800 Subject: [PATCH 3/3] Fix --- clients/filesystem-fuse/conf/gvfs_fuse.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/filesystem-fuse/conf/gvfs_fuse.toml b/clients/filesystem-fuse/conf/gvfs_fuse.toml index 374e204c0ef..da153bea43a 100644 --- a/clients/filesystem-fuse/conf/gvfs_fuse.toml +++ b/clients/filesystem-fuse/conf/gvfs_fuse.toml @@ -19,7 +19,7 @@ [fuse] file_mask = 0o600 dir_mask = 0o700 -fs_type = "gvfs" +fs_type = "memory" [fuse.properties]