diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-29 04:56:41 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-29 05:20:49 -0600 |
| commit | 48efcd0ce8c8a9ac51dc80c6ec49c63f6694b031 (patch) | |
| tree | bdb330a1bb59958ca914be40c906112d25b1eb39 /src/fuse/io.rs | |
| parent | 606846f23726c3472e6e12b17447b102ad6158cc (diff) | |
Implement buffered readdir
Diffstat (limited to 'src/fuse/io.rs')
| -rw-r--r-- | src/fuse/io.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fuse/io.rs b/src/fuse/io.rs index 47df045..7ba2944 100644 --- a/src/fuse/io.rs +++ b/src/fuse/io.rs @@ -3,6 +3,7 @@ use nix::{errno::Errno, sys::stat::SFlag}; use std::{ convert::Infallible, + ffi::OsStr, future::Future, ops::{ControlFlow, FromResidual, Try}, }; @@ -33,9 +34,9 @@ pub trait Known { #[derive(Clone)] pub struct Attrs(proto::Attrs); -pub struct Entry<N, K> { +pub struct Entry<'a, K> { pub offset: u64, - pub name: N, + pub name: &'a OsStr, pub inode: K, pub ttl: Ttl, } |
