5
0
mirror of git://git.proxmox.com/git/proxmox-fuse.git synced 2025-03-10 16:58:38 +03:00

fixup example code

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-03-07 13:47:05 +01:00
parent a802da229d
commit 6a0fe7645a

View File

@ -151,7 +151,7 @@ async fn handle_fuse(mut fuse: Fuse) -> Result<(), Error> {
}
}
Request::Open(request) => match fs.lookup(request.inode) {
Ok(node) => request.reply(&to_entry_param(&node.leak().stat.read().unwrap()), 0)?,
Ok(node) => request.reply(0)?,
Err(err) => handle_io_err(err, |err| request.io_fail(err))?,
},
Request::Release(request) => match fs.forget(request.inode, 1) {