]> git.proxmox.com Git - proxmox-fuse.git/commitdiff
fixup example code
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Mar 2024 12:47:05 +0000 (13:47 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Mar 2024 12:47:05 +0000 (13:47 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
examples/tmpfs/main.rs

index 4464d94034050a2c997801c95444ab57aa97d50a..8ca7f9e242c4a14f17814cb1511cf400a5a33ac2 100644 (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) {