From f60e40aafac38e53dddff9725dd47f1daf37e253 Mon Sep 17 00:00:00 2001 From: Kostis Papazafeiropoulos Date: Sat, 14 Dec 2024 19:08:10 +0000 Subject: [PATCH] fix(blobfs): Use correct result types for `open` and `create` Use the correct result types for `open` and `create` expected by the `fuse_backend_rs` 0.12.0 `Filesystem` trait Signed-off-by: Kostis Papazafeiropoulos --- rafs/src/blobfs/sync_io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rafs/src/blobfs/sync_io.rs b/rafs/src/blobfs/sync_io.rs index 70860b0e682..a1b895b9513 100644 --- a/rafs/src/blobfs/sync_io.rs +++ b/rafs/src/blobfs/sync_io.rs @@ -178,7 +178,7 @@ impl FileSystem for BlobFs { inode: Inode, flags: u32, _fuse_flags: u32, - ) -> io::Result<(Option, OpenOptions)> { + ) -> io::Result<(Option, OpenOptions, Option)> { self.pfs.open(_ctx, inode, flags, _fuse_flags) } @@ -188,7 +188,7 @@ impl FileSystem for BlobFs { _parent: Inode, _name: &CStr, _args: CreateIn, - ) -> io::Result<(Entry, Option, OpenOptions)> { + ) -> io::Result<(Entry, Option, OpenOptions, Option)> { Err(eacces!("Create request is not allowed in blobfs")) }