diqiu50 commented on PR #5905:
URL: https://github.com/apache/gravitino/pull/5905#issuecomment-2658474034
I want to show the logs after running the gvfs-fuse with command:
```
./target/debug/gvfs-fuse mount target/gvfs
gvfs://fileset/test/c1/s1/fileset1 -c conf/gvfs_fuse.toml -f -d 1
```
The result was not expected. can you work on that, and copy the logs on the
comments?
You need to apply patch with your code, and add logic with "-d" parameter :
```
diff --git a/clients/filesystem-fuse/conf/gvfs_fuse.toml
b/clients/filesystem-fuse/conf/gvfs_fuse.toml
index 76db3c4af..f1d8b46a2 100644
--- a/clients/filesystem-fuse/conf/gvfs_fuse.toml
+++ b/clients/filesystem-fuse/conf/gvfs_fuse.toml
@@ -21,7 +21,7 @@ file_mask = 0o600
dir_mask = 0o700
fs_type = "memory"
fuse_debug = true
-data_path = "target/gvfs-fuse"
+data_dir = "target/gvfs-fuse"
[fuse.properties]
diff --git a/clients/filesystem-fuse/src/main.rs
b/clients/filesystem-fuse/src/main.rs
index aef5d71d3..5551512d8 100644
--- a/clients/filesystem-fuse/src/main.rs
+++ b/clients/filesystem-fuse/src/main.rs
@@ -34,13 +34,10 @@ use tracing::{error, info};
fn init_work_dirs(config: &AppConfig, mount_point: &str) -> io::Result<()> {
let data_dir_name = Path::new(&config.fuse.data_dir).to_path_buf();
- let data_dir_name = data_dir_name.canonicalize()?;
if !data_dir_name.exists() {
- Err(io::Error::new(
- io::ErrorKind::NotFound,
- format!("Data directory {} not found", &config.fuse.data_dir),
- ))?
+ create_dir(&data_dir_name)?
};
+ let data_dir_name = data_dir_name.canonicalize()?;
let mount_point_name = data_dir_name.join(mount_point);
if !mount_point_name.exists() {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]