-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#5873] feat(gvfs-fuse): add debug log for FuseApiHandle #5905
base: main
Are you sure you want to change the base?
Changes from all commits
73a0ac0
b7a8091
c2372d0
9223f81
b174ab5
718b962
ee99b73
1c4b969
27892b4
5a270a8
b0b25d9
f7acf2c
d2d5777
e056cc8
6cea44d
131e1e1
56ee508
cb4cbc9
ffab5c3
80ec9fb
8d61983
bf36665
8a1897f
609bf62
90a9d8c
006e72d
e943183
dd40f05
a0f4e65
c30e1ab
c255270
72734a5
0b240ce
58ab18b
ed83eec
829c285
00612cc
5b4110a
3396487
8f4615f
72aefd8
5bc0031
c1513e3
2ee68cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
file_mask = 0o600 | ||
dir_mask = 0o700 | ||
fs_type = "memory" | ||
fuse_debug=true | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep the format |
||
[fuse.properties] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,6 +265,8 @@ pub struct FuseConfig { | |
#[serde(default)] | ||
pub fs_type: String, | ||
#[serde(default)] | ||
pub fuse_debug: bool, | ||
#[serde(default)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to handle default value like other configurations. |
||
pub config_path: String, | ||
#[serde(default)] | ||
pub properties: HashMap<String, String>, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ impl<T: RawFileSystem> FuseApiHandle<T> { | |
} | ||
} | ||
|
||
async fn get_modified_file_stat( | ||
pub async fn get_modified_file_stat( | ||
&self, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use this function to retrieve the file name. use the |
||
file_id: u64, | ||
size: Option<u64>, | ||
|
@@ -64,15 +64,15 @@ impl<T: RawFileSystem> FuseApiHandle<T> { | |
|
||
if let Some(size) = size { | ||
file_stat.size = size; | ||
}; | ||
} | ||
|
||
if let Some(atime) = atime { | ||
file_stat.atime = atime; | ||
}; | ||
} | ||
|
||
if let Some(mtime) = mtime { | ||
file_stat.mtime = mtime; | ||
}; | ||
} | ||
|
||
Ok(file_stat) | ||
} | ||
|
@@ -117,6 +117,7 @@ impl<T: RawFileSystem> Filesystem for FuseApiHandle<T> { | |
} | ||
|
||
let file_stat = self.fs.stat(inode).await?; | ||
|
||
Ok(ReplyAttr { | ||
ttl: self.default_ttl, | ||
attr: fstat_to_file_attr(&file_stat, &self.fs_context), | ||
|
@@ -256,7 +257,7 @@ impl<T: RawFileSystem> Filesystem for FuseApiHandle<T> { | |
} | ||
|
||
type DirEntryStream<'a> | ||
= BoxStream<'a, fuse3::Result<DirectoryEntry>> | ||
= BoxStream<'a, fuse3::Result<DirectoryEntry>> | ||
where | ||
T: 'a; | ||
|
||
|
@@ -336,7 +337,7 @@ impl<T: RawFileSystem> Filesystem for FuseApiHandle<T> { | |
} | ||
|
||
type DirEntryPlusStream<'a> | ||
= BoxStream<'a, fuse3::Result<DirectoryEntryPlus>> | ||
= BoxStream<'a, fuse3::Result<DirectoryEntryPlus>> | ||
where | ||
T: 'a; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to use
tracing
instead oflog
, please removelog
.