Remove opendir
This commit is contained in:
parent
5cfbba8c9b
commit
1ef3c1e477
|
@ -19,7 +19,6 @@ type InodeCache = BTreeMap<u64, PathBuf>;
|
||||||
pub struct EncryptedFs {
|
pub struct EncryptedFs {
|
||||||
fs: GocryptFs,
|
fs: GocryptFs,
|
||||||
inode_cache: InodeCache,
|
inode_cache: InodeCache,
|
||||||
file_handle: AtomicU64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EncryptedFs {
|
impl EncryptedFs {
|
||||||
|
@ -37,11 +36,7 @@ impl EncryptedFs {
|
||||||
let mut inode_cache = BTreeMap::new();
|
let mut inode_cache = BTreeMap::new();
|
||||||
inode_cache.insert(FUSE_ROOT_ID, path.to_path_buf());
|
inode_cache.insert(FUSE_ROOT_ID, path.to_path_buf());
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self { fs, inode_cache })
|
||||||
fs,
|
|
||||||
inode_cache,
|
|
||||||
file_handle: AtomicU64::new(0),
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn mount<P>(self, mountpoint: P)
|
pub fn mount<P>(self, mountpoint: P)
|
||||||
|
@ -198,17 +193,6 @@ impl Filesystem for EncryptedFs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn opendir(
|
|
||||||
&mut self,
|
|
||||||
_req: &fuser::Request<'_>,
|
|
||||||
ino: u64,
|
|
||||||
_flags: i32,
|
|
||||||
reply: fuser::ReplyOpen,
|
|
||||||
) {
|
|
||||||
let fh = self.file_handle.fetch_add(1, Ordering::SeqCst);
|
|
||||||
reply.opened(fh, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn readdir(
|
fn readdir(
|
||||||
&mut self,
|
&mut self,
|
||||||
_req: &fuser::Request<'_>,
|
_req: &fuser::Request<'_>,
|
||||||
|
|
Loading…
Reference in New Issue