mirror of
https://github.com/house-of-vanity/furumi.git
synced 2025-07-07 05:34:07 +00:00
Listing works.
This commit is contained in:
@ -387,8 +387,13 @@ impl MemFS {
|
|||||||
|
|
||||||
async fn do_lookup(&self, op: &op::Lookup<'_>) -> io::Result<ReplyEntry> {
|
async fn do_lookup(&self, op: &op::Lookup<'_>) -> io::Result<ReplyEntry> {
|
||||||
warn!("do_lookup {:?}", op);
|
warn!("do_lookup {:?}", op);
|
||||||
let f_inode = self.name_to_inode(op.parent(), op.name()).await.unwrap();
|
|
||||||
//warn!("do_lookup f_inode {:?}", f_inode);
|
//warn!("do_lookup f_inode {:?}", f_inode);
|
||||||
|
|
||||||
|
|
||||||
|
match self.name_to_inode(
|
||||||
|
op.parent(), op.name()).await {
|
||||||
|
Ok(f_inode) => {
|
||||||
let inodes = self.inodes.lock().await;
|
let inodes = self.inodes.lock().await;
|
||||||
let inode = inodes.get(f_inode).ok_or_else(no_entry)?;
|
let inode = inodes.get(f_inode).ok_or_else(no_entry)?;
|
||||||
let inode = inode.lock().await;
|
let inode = inode.lock().await;
|
||||||
@ -405,9 +410,11 @@ impl MemFS {
|
|||||||
drop(inodes);
|
drop(inodes);
|
||||||
PathBuf::new()}
|
PathBuf::new()}
|
||||||
};
|
};
|
||||||
|
|
||||||
warn!("{:?}", file_path);
|
warn!("{:?}", file_path);
|
||||||
self.fetch_remote(file_path, f_inode).await;
|
self.fetch_remote(file_path, f_inode).await;}
|
||||||
|
Err(e) => warn!("Cant find inode for {:?} - {:?}", op.name(), e)
|
||||||
|
}
|
||||||
|
|
||||||
self.lookup_inode(op.parent(), op.name()).await
|
self.lookup_inode(op.parent(), op.name()).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user